- Add
package:shadcn_uito yourpubspec.yamldart pub add shadcn_ui
- Import and use components
import 'package:shadcn_ui/shadcn_ui` show ShadButton, ShadText;
- Install components
mason add -g <component>- Generate them
mason make <component>- ✅ ShadButton
- ✅ ShadText
The package in ./packages/shadcn_ui is generated from the bricks in the ./bricks directory.
To regenerate the shadcn_ui package run the following:
dart ./tools/generate_package.dart