Appearance
Home > @plaidev/karte-action-sdk > createProp
createProp() function
Signature:
typescript
createProp: <Props extends Record<string, any>, K extends keyof Props>(key: K, type: FlexComponentSchemaPropType, suggestions?: Props[K][], priority?: number, defaultValue?: Props[K]) => FlexComponentSchemaProp<Props, K>
Parameters
Parameter | Type | Description |
---|---|---|
key | K | |
type | FlexComponentSchemaPropType | |
suggestions | Props[K][] | (Optional) |
priority | number | (Optional) |
defaultValue | Props[K] | (Optional) |
Returns:
FlexComponentSchemaProp<Props, K>