common-intellisense
Version:
111 lines (110 loc) • 3.46 kB
JSON
{
"props": [
{
"Attribute": "children",
"Type": "`ReactNode` | `ReactNode[]`",
"Description": "Usually the Card parts, `CardHeader`, `CardBody` and `CardFooter`.",
"Default": "-"
},
{
"Attribute": "shadow",
"Type": "`none` | `sm` | `md` | `lg`",
"Description": "The card shadow.",
"Default": "`md`"
},
{
"Attribute": "radius",
"Type": "`none` | `sm` | `md` | `lg`",
"Description": "The card border radius.",
"Default": "`lg`"
},
{
"Attribute": "fullWidth",
"Type": "`boolean`",
"Description": "Whether the card should take the full width of its parent.",
"Default": "`false`"
},
{
"Attribute": "isHoverable",
"Type": "`boolean`",
"Description": "Whether the card should change the background on hover.",
"Default": "`false`"
},
{
"Attribute": "isPressable",
"Type": "`boolean`",
"Description": "Whether the card should allow to be pressed.",
"Default": "`false`"
},
{
"Attribute": "isBlurred",
"Type": "`boolean`",
"Description": "Whether the card background should be blurred.",
"Default": "`false`"
},
{
"Attribute": "isFooterBlurred",
"Type": "`boolean`",
"Description": "Whether the card footer background should be blurred.",
"Default": "`false`"
},
{
"Attribute": "isDisabled",
"Type": "`boolean`",
"Description": "Whether the card should be disabled. The press events will be ignored.",
"Default": "`false`"
},
{
"Attribute": "disableAnimation",
"Type": "`boolean`",
"Description": "Whether to disable the animation.",
"Default": "`false`"
},
{
"Attribute": "disableRipple",
"Type": "`boolean`",
"Description": "Whether to disable ripple effect. Only when `isPressable` is true.",
"Default": "`false`"
},
{
"Attribute": "allowTextSelectionOnPress",
"Type": "`boolean`",
"Description": "Whether to allow text selection on pressing. Only when `isPressable` is true.",
"Default": "`false`"
},
{
"Attribute": "classNames",
"Type": "`Record<\"base\"| \"header\"| \"body\"| \"footer\", string>`",
"Description": "Allows to set custom class names for the card slots.",
"Default": "-"
}
],
"link": "https://nextui.org/docs/components/card",
"events": [
{
"Attribute": "onPress",
"Type": "`(e: PressEvent) => void`",
"Description": "Handler that is called when the press is released over the target."
},
{
"Attribute": "onPressStart",
"Type": "`(e: PressEvent) => void`",
"Description": "Handler that is called when a press interaction starts."
},
{
"Attribute": "onPressEnd",
"Type": "`(e: PressEvent) => void`",
"Description": "Handler that is called when a press interaction ends, either over the target or when the pointer leaves the target."
},
{
"Attribute": "onPressChange",
"Type": "`(isPressed: boolean) => void`",
"Description": "Handler that is called when the press state changes."
},
{
"Attribute": "onPressUp",
"Type": "`(e: PressEvent) => void`",
"Description": "Handler that is called when a press is released over the target, regardless of whether it started on the target or not."
}
]
}