@wizeworks/silicaui-react
v0.19.0
Published
Silica UI's React layer — thin components over the Silica CSS classes.
Maintainers
Readme
@wizeworks/silicaui-react
The React layer of Silica UI. Components are thin wrappers — they apply
@wizeworks/silicaui classes and delegate
interaction behavior (focus management, keyboard nav, positioning, a11y) to
Base UI. No styling logic hides in JS: every visual
variant is a class string, so the CSS and React layers never drift apart.
Install
pnpm add @wizeworks/silicaui-react
pnpm add -D @wizeworks/silicaui tailwindcssWire the CSS once (see @wizeworks/silicaui),
then:
import { Button } from "@wizeworks/silicaui-react";
<Button color="primary" onClick={save}>Save</Button>
<Button color="secondary" variant="outline" size="lg">Learn more</Button>
<Button color="error" variant="ghost" loading>Deleting…</Button>
<Button color="brand" render={<a href="/docs" />}>Docs</Button>
<Button color="primary" shape="circle" aria-label="Add"><PlusIcon /></Button>Components
125 components, covering everything from primitives to composite interaction patterns:
| Category | Components |
| --- | --- |
| Actions | Button DropdownMenu Swap |
| Data display | Accordion Avatar Badge Card Carousel Chat ChatComposer ChatLayout ChatMessage ChatSystemMessage ChatToolCalls ChatTypingIndicator Collapse Countdown Diff Kbd List MetadataList Meter MockupBrowser MockupCode MockupCodeLine MockupPhone MockupWindow PreviewCard Stat Table Timeline Timestamp |
| Data input | Autocomplete Calendar Checkbox CheckboxGroup ColorPicker Combobox DateInput DatePicker DateRangeInput DateTimeInput Field Fieldset FileInput FileUpload Filter Form Input InputGroup Join Label MultiSelect NativeSelect NumberField PasswordInput PhoneInput PinInput Radio RadioGroup Range Rating SearchInput Select SelectionList Slider Switch TagInput Textarea TimeInput Toggle ToggleGroup Validator |
| Navigation | Breadcrumb Dock Link Menu Menubar Navbar NavigationMenu Outline OverflowList Pagination Sidebar Steps Tabs |
| Feedback & overlay | Alert AlertDialog ContextMenu Dialog Drawer ImperativeAlertDialogProvider Indicator Lightbox Loading Overlay Popover Progress RadialProgress Skeleton Status ToastProvider Tooltip |
| Layout | AppShell Divider Footer Hero Mask ScrollArea Stack |
| Advanced / composite | Collapsible CommandPalette Dropzone EmptyState PowerSearch ThemeController Toolbar TreeView Wizard |
| Typography | Blockquote Display Heading Prose Text Typography Wordmark |
Composite components with heavier engines are separate packages so this
package stays dependency-light — install them alongside @wizeworks/silicaui-react when
you need them:
| Package | Wraps |
| --- | --- |
| @wizeworks/silicaui-charts | Apache ECharts, auto-themed to Silica tokens |
| @wizeworks/silicaui-table | TanStack Table — sort, select, paginate |
| @wizeworks/silicaui-editor | TipTap rich-text editor |
| @wizeworks/silicaui-dnd | dnd-kit — sortable lists & drag primitives |
| @wizeworks/silicaui-panels | react-resizable-panels |
<Button> props
A representative example — every component follows the same shape: semantic
color/variant/size props mapping straight to @wizeworks/silicaui classes, full
native-element prop passthrough, and a forwarded ref.
| Prop | Type | Default |
| --- | --- | --- |
| color | semantic name or any custom color | — (neutral) |
| variant | solid \| outline \| soft \| ghost \| link \| dash | solid |
| size | xs \| sm \| md \| lg \| xl | md |
| shape | square \| circle | — |
| block / wide / active | boolean | false |
| loading | boolean — spinner + aria-busy + non-interactive | false |
| iconStart / iconEnd | ReactNode | — |
| render | ReactElement — render as another element | — |
Plus all native <button> attributes and a forwarded ref.
Links
silicaui.com — website & docs
@wizeworks/silicaui— the CSS layer this package styles with
