Recipes
Optional, consumer-owned components powered by specialized engines.
Recipes bring specialized product capabilities into your application without adding their engines to every Zenos project. The CLI installs the required dependency and copies editable source into your component directory.
Core components and recipes
Section titled “Core components and recipes”Core components└── installed from @zentara-co/zenos-ui Recipes├── installed with the zenos CLI├── copied into your application├── powered by an optional specialist library└── owned and editable by your teamImport core controls and layout primitives directly from @zentara-co/zenos-ui. Install a recipe when the application needs a calendar, carousel, chart, data table, or file upload. Recipe dependencies never become baseline dependencies of the core package.
Install a recipe
Section titled “Install a recipe”pnpm dlx @zentara-co/zenos-cli add calendarRun the command from the consumer project. Zenos detects the package manager and component destination, installs only the missing engine, and adds every source file that belongs to the recipe.
Available recipes
Section titled “Available recipes”| Recipe | What it adds | Optional engine |
|---|---|---|
| Animated Number | Animated numeric text with Text typography and number formatting | @number-flow/react |
| Time Picker | Single-time and range selection with Input variants and Zenos theme tokens | timepicker-ui-react, timepicker-ui |
| Animated Label | Rolling text labels with width transitions and Text typography | None |
| Calendar | Calendar, DatePicker, and DateRangePicker | @daypicker/react |
| Carousel | A compound carousel with navigation and pagination | embla-carousel-react |
| Chart | ChartContainer, config, tooltip, legend, and semantic chart tokens | recharts |
| Data Table | Sorting, filtering, pagination, selection, visibility, loading, and empty states | @tanstack/react-table |
| File Upload | Drag-and-drop selection, browse controls, validation, file lists, and source actions | react-dropzone |
Each engine keeps ownership of its specialist behavior. Zenos supplies the public composition, styling, semantic tokens, controls, and accessibility integration around it.
Source ownership
Section titled “Source ownership”Recipe files live in your application and use public Zenos imports. You can change their markup and behavior after installation without patching @zentara-co/zenos-ui or importing from the Zenos registry.
import { DatePicker } from "@/components/ui/date-picker";The exact import path follows the component directory and aliases already configured by the project.
Preview and update safely
Section titled “Preview and update safely”Inspect a recipe before writing files:
npx @zentara-co/zenos-cli add chart --dry-runThe dry run lists dependencies, files, and token changes without modifying the project. Existing recipe files are never silently replaced. Use --overwrite only when you intentionally want the current registry version to replace local edits.
For package-manager detection, destination rules, conflict behavior, and every supported command, see the CLI guide.