mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-23 00:00:33 +00:00
How to add new components
components.ts:- Create a type for the new component and add it to the
AppComponentunion type - Add the component to the
componentsrecord
- Create a type for the new component and add it to the
sets.ts:- Add the component to one of the component sets:
layout,buttons,inputsordisplay(this controls which group the component will be placed in in the Insert menu)
- Add the component to one of the component sets:
quickStyleProperties.ts:- Add the component to the
quickStylePropertiesrecord - (optional) Add the CSS properties that could be applied to the component parts
- Add the component to the
Component.svelte:- Add the new component in the Svelte
ifstatement
- Add the new component in the Svelte
default-codes.ts:- (optional) Add the default code associated with the new component to the
DEFAULT_CODESrecord
- (optional) Add the default code associated with the new component to the