Card

Cards provide you with a flexible and extensible content container with multiple color variants and options.

A card is a flexible and extensible content container. It includes options for headers and footers, a wide variety of content, contextual background colors, and powerful display options.

Example

Cards are customizable content holders built with as little markup and styles as possible. They are based on flexbox, offering easy alignment and mixing well with other components.

By default, cards are set to have width: 100%, fully spanning the width of the parent container.

Card Example
Card Image

Card Title

Card Subtitle

Some quick example text to build on the card title and make up the bulk of the card's content.

Example Link

Body

The building block of a card is the card body. All the content placed in the default component slot will be placed inside the body.

Card Body
Some quick example text to build on the card title and make up the bulk of the card's content.

Optionally, you can provide a header or a footer for your cards.

Card Header and Footer
Card Header
Some quick example text to build on the card title and make up the bulk of the card's content.
Card Footer

Card Images

You can provide an image at the top of the card, using the image slot.

Card Image
Card Image
Some quick example text to build on the card title and make up the bulk of the card's content.

Sizes

You're able to use the size modifier to control the text and spacing size of your cards, using one of the available sizes: sm, md, and lg. The default size is set to md.

Card Sizes
Some quick example text to build on the card title and make up the bulk of the card's content.
Some quick example text to build on the card title and make up the bulk of the card's content.
Some quick example text to build on the card title and make up the bulk of the card's content.

Variants

Inkline includes several predefined card styles that you can use within your application. You can apply a style using the variant property.

Card Variants
Light Card
Some quick example text to build on the card title and make up the bulk of the card's content.
Dark Card
Some quick example text to build on the card title and make up the bulk of the card's content.
Primary Card
Some quick example text to build on the card title and make up the bulk of the card's content.
Secondary Card
Some quick example text to build on the card title and make up the bulk of the card's content.
Success Card
Some quick example text to build on the card title and make up the bulk of the card's content.
Danger Card
Some quick example text to build on the card title and make up the bulk of the card's content.
Warning Card
Some quick example text to build on the card title and make up the bulk of the card's content.
Info Card
Some quick example text to build on the card title and make up the bulk of the card's content.

API

Card API <i-card>
Property Description Type Accepted Default
size Sets the size of the card component. String sm, md, lg md
variant Sets the color variant of the card component. String primary, secondary, light, dark, success, danger, warning, info primary