Monorepo
Packages
Eleven focused, independently-versioned packages. Use one, or all of them.
Architecture
@structyl/core
Internal foundation: Slot, Primitive, Portal, Presence, FocusScope, DismissableLayer, RovingFocusGroup, Popper and more.
@structyl/hooks
30 reusable, SSR-safe, tree-shakeable React hooks.
Live — useCounter hook
@structyl/utils
Pure utility functions: cn, composeEventHandlers, type guards, array/object/string/number helpers, plus color and format modules.
@structyl/themes
Runtime theming: ThemeProvider, useTheme, ThemeScript, 10 accent presets, and useColorPreset.
@structyl/primitives
Headless, accessible behaviour components — the unstyled layer.
@structyl/styled
Tailwind-styled components, batteries included.
@structyl/data-table
A full-featured DataTable built on TanStack Table.
@structyl/icons
Curated icon set, re-exported from lucide-react.
@structyl/cli
Scaffolding CLI — init a project and add components from the registry.
@structyl/api-client
Lightweight Axios wrapper with React 18 cache, retries, SSR support, and zero extra dependencies.
No users
@structyl/forms
Headless, schema-driven forms: a from-scratch chainable validator, a useForm engine, and Form/Field components on the accessible primitives.