Skip to content

Card

View on: 

A highly configurable panel design to display media and information.

Import



BundlerCDNReact Legacy
import '@kemet-ui/card';
<script type="module" src="https://unpkg.com/kemet-ui@latest/dist/elements/card.js"></script>
import { KemetCard } from 'kemet-ui/react';

Use the center attribute to center the elements in the card.

Use the rounded attribute to add rounded corners to the card. Pill and Circle are ignored.

You can add background color by using the filled attribute.

Add a shadow with the elevation attribute. Goes from leves 1-6 and inner.

There are many css custom properties that can be used to change the appearance of the card. Use --kemet-card-filled-color for example to change the background color of the card when the filled attribute is used.

The hard has multiple slots that allow you to add content to specific parts of the card.

Use the header slot to add content to the header of the card.

Use the footer slot to add content to the footer of the card.

You can add images, videos, or even iframe embeds to the media slot.

You can add captions to the media slot.

Use a combination of attributes and slots to create a custom card.








The gods are nature. Nature is completely free.
Version 5.0.0