Lapikit

Card component

Card

The Card component is a versatile container used to group together information or actions in a user interface. It can be used to display content, images, buttons or links, while offering advanced customization to suit various styles and contexts.

Default

Examples of card

Base

This example shows the simple use of the Card component with its default settings. Ideal for fast, intuitive integration.

Default

Density

The density property lets you adjust the spacing and height of the Card. The available options: compact, comfortable and default, adapt to different design needs.

Default
Compact
Comfortable

Variant

The variant property lets you customize the Card’s style. The available options: outline, text and filled, offer visual variations adapted to different contexts.

Outline
Text

Event

Cards can be interactive, responding to events such as clicks or hovers. This example shows how to manage events for dynamic interactions.

Anchor
click

Disabled

The disabled property allows you to disable a Card, preventing any interaction. This can be useful for indicating that an action or option is not available.

Disabled

API Reference

propstypedescriptiondefaulttype_extend
ref $bindableHTMLElementDirect access to DOM elementundefined
isenumMakes the component <a> or <button> or div.divbutton | a | div
hrefstringAdd path or urlundefined
darkbooleanEnable dark theme for component.false
lightbooleanEnable light theme for the component.false
colorstringApplies a custom color to text or icons.undefined
backgroundstringApply a custom background color.undefined
densityenumControls vertical densitydefaultcompact | comfortable | default
roundedstringControls item rounding (none, sm, md, lg, etc.).md
variantenumSets the visual style of the Card.filledoutline | text | filled
activebooleanDisplays active statusfalse
disabledbooleanDeactivates the Card, preventing any interaction.false

Variables CSS

variabledefaultdescription
–-card-color–-kit-on-surfaceText color
–-card-background–-kit-surfaceBackground color
–-card-radius--kit-radius-mdCard edge radius

For better structure, combine your Cards with Avatars and clear Buttons.

©2025 Lapikit.

Made with by Nycolaide