Prop Table
An expandable table for documenting component props.
Prop
Type
Default
Name
variantDescription
Visual style of the button.
Type
"primary" | "secondary" | "ghost"Default
"primary"Name
sizeDescription
Size of the button.
Type
"sm" | "md" | "lg"Default
"md"Name
disabledDescription
Whether the button is disabled.
Type
booleanDefault
falseName
onClickDescription
Called when the button is clicked.
Type
(event: MouseEvent) => voidDefault
-
Name
childrenDescription
Content rendered inside the button.
Type
ReactNodeDefault
-
npx shadcn@latest add @roiui/prop-tablenpx shadcn@latest add @roiui/prop-table-tailwindanatomy
Renders the table header and wraps the rows. Accepts all section element props.
Prop
Type
Default
Name
nameDescription
Name of the prop being documented
Type
stringDefault
-
Name
typeDescription
Type signature of the prop. Union members, generics, and known React types are syntax highlighted.
Type
stringDefault
-
Name
defaultValueDescription
Default value of the prop, shown in the summary row and expanded panel
Type
stringDefault
-
Name
childrenDescription
Description of the prop, shown in the expanded panel
Type
ReactNodeDefault
-
Name
classNameDescription
Additional CSS classes applied to the row
Type
stringDefault
-