@ddm-design-system/card
TypeScript icon, indicating that this package has built-in type declarations

4.0.4 • Public • Published

@ddm-design-system/card

The Card component is merely a wrapper for the different Card components. it is advisable to pass only those components (CardHeader, CardBody, CardFooter) as children, even though you can still pass whatever you please as seen in the example below. A valid example for a different component would be for instance a Divider.

The CardHeader can contain both the Card's title and subtitle. The Title can have an optional icon before it. It also supports having either a label or an icon on the top right corner.

The CardBody serves as the wrapper for the Card's main content wrapper.

The CardFooter can either contain a Link or simply a custom component(s) via the children prop.

Readme

Keywords

none

Package Sidebar

Install

npm i @ddm-design-system/card

Weekly Downloads

1

Version

4.0.4

License

MIT

Unpacked Size

41.6 kB

Total Files

37

Last publish

Collaborators

  • ddmcarlsberg