Skip to content

Card ​

Storybook

Browse the props, controls and all the stories of Card in Storybook.

The Card component groups content about a single subject in a box with a title header. Its children are rendered in the card body.

Usage ​

tsx
import { Card } from "@tsed/react-formio/molecules/card/Card";

<Card label="Form settings">
  <p>Card content</p>
</Card>;

Props ​

NameTypeDefaultDescription
labelstringTitle displayed in the card header.
classNamestringAdditional CSS classes on the card root.
childrenReactNodeContent rendered in the card body.

Example ​

Live exampleOpen in Storybook ↗

Override ​

Card is registered in the components registry under the name Card. See Registering react components.

tsx
import { registerComponent } from "@tsed/react-formio/registries/components";

registerComponent("Card", MyCustomCard);

Released under the MIT License.