Skip to content
On this page

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

ParameterTypeDescription
keyK
typeFlexComponentSchemaPropType
suggestionsProps[K][](Optional)
prioritynumber(Optional)
defaultValueProps[K](Optional)

Returns:

FlexComponentSchemaProp<Props, K>