Webflow Prop Types Quick Reference
Quick reference for all 11 Webflow code component prop types via props.<Type>() from @webflow/data-types.
Quick Reference Table
| Type | Alias | Return Type | Has defaultValue | Unique Params |
|---|---|---|---|---|
| Text | String | string |
Yes | — |
| RichText | — | ReactNode |
Yes | — |
| TextNode | — | ReactNode |
Yes | multiline |
| Link | — | object |
No | — |
| Image | — | object |
No | — |
| Number | — | number |
Yes | min, max, decimals |
| Boolean | — | boolean |
Yes | trueLabel, falseLabel |
| Variant | — | string |
Yes | options (required) |
| Visibility | — | boolean |
Yes | — |
| Slot | Children | ReactNode |
No | — |
| ID | — | string |
No | — |
Type Signatures
Text (alias: String)
props.Text({ name, group?, tooltip?, defaultValue?: string })
// Returns: stringRichText
props.RichText({ name, group?, tooltip?, defaultValue?: string })
// Returns: ReactNodeTextNode
props.TextNode({ name, group?, tooltip?, defaultValue?: string, multiline?: boolean })
// Returns: ReactNode- Editable directly on the Webflow canvas
Link
props.Link({ name, group?, tooltip? })
// Returns: { href: string, target?: "_self" | "_blank" | string, preload?: "prerender" | "prefetch" | "none" | string }- No
defaultValueparam - Returns an object — may need a wrapper if component expects
hrefandtargetseparately
Image
props.Image({ name, group?, tooltip? })
// Returns: { src: string, alt?: string }- No
defaultValueparam - Returns an object — may need a wrapper if component expects
srcandaltseparately
Number
props.Number({ name, group?, tooltip?, defaultValue?: number, min?: number, max?: number, decimals?: number })
// Returns: numberBoolean
props.Boolean({ name, group?, tooltip?, defaultValue?: boolean, trueLabel?: string, falseLabel?: string })
// Returns: booleanVariant
props.Variant({ name, options: string[], group?, tooltip?, defaultValue?: string })
// Returns: stringoptionsis requireddefaultValuemust match one of the options
Visibility
props.Visibility({ name, group?, tooltip?, defaultValue?: boolean })
// Returns: booleanSlot (alias: Children)
props.Slot({ name, group?, tooltip? })
// Returns: ReactNode- No
defaultValueparam - Allows designers to insert child components
ID
props.Id({ name, group?, tooltip? })
// Returns: string- No
defaultValueparam - Used for HTML element IDs (CSS targeting, form labels, JS interactions)
Common Params
All types share: name (required), group (optional), tooltip (optional)