fleet/docs/Contributing/adding-new-UI-components.md

14 lines
570 B
Markdown
Raw Normal View History

# Using `generate` to create boilerplate for a new Fleet UI component
## Basic steps to create a new UI component
1. `cd` into `fleet/frontend/components`
2. Run `./generate -n NewComponentName`, replacing `NewComponentName` with the desired name for your
new component.
3. A directory and all boilerplate for the various files of the component will be generated in
`fleet/frontend/components`
You can also run `./generate -h` for information about the other options available (overwrite and
specifying destination)
<meta name="pageOrderInSection" value="450">