There are four card styles available to use in Vanilla: default, header, highlighted and overlay. Our card component will expand to fill the full width of its parent container.
The purpose of the default card is to display information, without user interaction.
The purpose of the header card is to display information, grouped under a heading.
The purpose of the highlighted card should be used when you can interact with the content.
The purpose of the overlay card is to make the text visible in conjunction with a strip image.
To import just this component into your project, copy the snippet below and include it in your main Sass file.
@import 'patterns_card'; @include vf-p-card;
For more information see Customising Vanilla in your projects, which includes overrides and importing instructions.
You can use cards in React by installing our react-component library and importing