@synu/react
v0.1.0
Published
React adapter for Synu — composable, accessible components, hooks, and theming context. Zero runtime CSS.
Maintainers
Readme
@synu/react
React adapter for the Synu design system — composable, accessible components, hooks, and theming context.
Installation
npm install @synu/react @synu/themeOr install everything at once:
npm install synu
Usage
import '@synu/theme';
import { ButtonRoot, ButtonLabel, ThemeProvider } from '@synu/react';
function App() {
return (
<ThemeProvider>
<ButtonRoot variant="primary" size="lg">
<ButtonLabel>Save changes</ButtonLabel>
</ButtonRoot>
</ThemeProvider>
);
}What's Included
- 60+ components — Button, Dialog, Drawer, Menu, Table, Charts, TreeView, and more
- Hooks —
useTheme,useControllableState,useDialog,usePopover,useTabs,useMenu - ThemeProvider — Light/dark mode with
toggle()andsetMode() - Composition — Compound component patterns (
ButtonRoot+ButtonLabel+ButtonIcon) - Full TypeScript — Exported interfaces for every component and hook
Peer Dependencies
react>= 18.0.0react-dom>= 18.0.0@synu/theme^0.1.0
Documentation
Visit synu.dev for interactive demos and full API reference.
License
MIT
