Getting Started
Stack
Components
- Accordion
- Alert
- Alert Dialog
- Aspect Ratio
- Autocomplete
- Avatar
- Badge
- Breadcrumb
- Button
- Button Group
- Calendar
- Card
- Carousel
- Checkbox
- Collapsible
- Combobox
- Command
- Context Menu
- Data Table
- Date Picker
- Dialog
- Dropdown Menu
- Empty
- Form Field
- Hover Card
- Icon
- Input Group
- Input OTP
- Input
- Item
- Kbd
- Label
- Menubar
- Pagination
- Popover
- Progress
- Radio Group
- Scroll Area
- Select
- Separator
- Sheet
- Sidebar
- Skeleton
- Slider
- Sonner (Toast)
- Spinner
- Switch
- Table
- Tabs
- Textarea
- Toggle
- Toggle Group
- Tooltip
components.json
Manage the spartan configuration through components.json.
Your custom configuration for the spartan CLI is stored in a file called components.json and is located in the root of your workspace.
Note : this file is only required by the spartan CLI. If you're manually copy & pasting components, you can ignore this file.
File Generation
The components.json file is generated the first time you use the ui command.
Configuration
{
"componentsPath": "libs/ui",
"buildable": true,
"generateAs": "library" | "entrypoint",
"importAlias": "@spartan-ng/helm"
}componentsPath
The base path where your components will be generated.
buildable
Determines whether the generated library is buildable or not.
generateAs
Generate the components as a library or entrypoint.
importAlias
Specify the import path of the component e.g. @spartan-ng/helm.