- CardB(
__namedParameters: PropsWithChildren<
{
variant: | "primary"
| "secondary"
| "success"
| "danger"
| "light"
| "dark";
},
>,
): ReactElement Parameters
- __namedParameters: PropsWithChildren<
{
variant: | "primary"
| "secondary"
| "success"
| "danger"
| "light"
| "dark";
},
>
Returns ReactElement
Renders a card around some content.
The props type is written directly in the function definition:
This can make the TypeDoc documentation a bit cleaner for very simple components, but it makes your code less readable.