In development
The slabui CLI is in development. Commands, options and the registry format
may change before version 1.0.
Blocks (kind: "block", such as a dashboard page) and examples
(kind: "example", such as button-outline) are starting points. They are
copied once and become part of your code: they are not tracked in
slabui.json and update does not change them.
Install
Blocks and examples need a folder:
pnpm slabui add dashboard-01 --path app/dashboard
pnpm slabui add button-outline --path components/examples
- Without
--path, the CLI asks for the folder; with--yes(or in CI) it fails. - Files keep their folder structure inside
--path, and imports between them are rewritten to the new location. - Their dependencies (
button,card…) are installed in your aliases as usual and tracked inslabui.json. - The same block can be installed again in another folder.
On This Page
Install