Skip to content

Card

The Card component is a flexible container for grouping content in your UI.
It supports visual enhancements such as glow on hover, animated borders, and multiple variants, making it ideal for dashboards, profiles, or interactive sections.

  • Flexible container: Holds any content including text, images, buttons, or other components.
  • Variants: Supports contained and outlined styles.
  • Glow and animation: Add visual emphasis on hover or continuously with animated borders.
  • Customizable: Configure border width, colors, hover behavior, and animations.

contained

outlined

glow on hover

animated border

animated border - custom colors

animated border - stop on hover

PropTypeDefaultDescription
variant"contained" | "outlined""contained"Visual style of the card.
glowOnHoverbooleanfalseAdds a glow effect when the card is hovered.
animatedBorderboolean | objectfalseEnables an animated border. Can be a boolean or an object with configuration: width, primaryColor, secondaryColor, stopOnHover.
stylestring""Inline styles for custom layout, size, or cursor.
onClickfunctionundefinedClick event handler for interactive cards.
  • Use variants consistently for a coherent UI.
  • Prefer glowOnHover or animatedBorder for emphasis on interactive or highlighted sections.
  • Combine animatedBorder with custom colors for brand-themed cards.
  • Avoid excessive animations to maintain performance and avoid distraction.
  • Use Cards as semantic containers for related content, not for layout spacing only.