PropField
Display a prop field with a name, type, and description.
Use the PropField
component to annotate props/params in your documentation.
Usage
Examples
Basic
checked
type: boolean
The checked state of the checkbox.
default: false
requiredObject
You can use PropField
in combination with the Collapsible
component to represent more complex types.
options
type: CheckboxOptions
Configuration options to customize the behavior of the Checkbox
component.
width
type: number
The width to apply to the checkbox.
required
height
type: number
The height to apply to the checkbox.
default: 20
required required
Props
name
type: string
The name of the prop.
required
type
type: string
The type of the prop.
required
defaultValue
type: string
The default value of the prop.
required
type: boolean
Whether the prop is required.
default: false
children
type: Snippet
The description/content to display within the prop field.