@tokis/react
v1.2.2
Published
React adapter for Tokis — composable, accessible components, hooks, and theming context. Zero runtime CSS.
Maintainers
Readme
@tokis/react
React adapter for the Tokis design system — composable, accessible components, hooks, and theming context.
Installation
npm install @tokis/react @tokis/theme @tokis/core @tokis/tokensOr install everything at once:
npm install @tokis/tokis
Usage
import '@tokis/theme';
import { ButtonRoot, ButtonLabel, ThemeProvider } from '@tokis/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@tokis/core^1.1.0@tokis/tokens^1.1.0@tokis/theme^1.1.0
Documentation
Visit tokis.dev for interactive demos and full API reference.
License
MIT
