@carbon/generate-pattern
v1.24.0
Published
This is a CLI tool used to generate example code for identified patterns within the Carbon Design System.
Downloads
137
Readme
Carbon pattern code generator
This is a CLI tool used to generate example code for identified patterns within the Carbon Design System.
The majority of the current examples are created from pre-existing Vite templates from a monorepo to demonstrate how to use @carbon/react
and @tanstack/react-table
together. You can choose to either generate a full Vite application or to generate an inline example within an existing application.
Usage
npx @carbon/generate-pattern
- Select a pattern
- Choose if you want the pattern's dependencies installed
- Choose an install path (default is current directory)
- Select pattern type
- Full example app
- Integrate within an existing app, ie inline