Basic Card Example
This is a simple card that displays content with a title. Perfect for highlighting important information or grouping related content.
Learn how to use card components to display information in organized, visually appealing layouts with support for icons, titles, and grid arrangements.
Cards are versatile components that help organize and display information in a structured, visually appealing way. They’re perfect for showcasing features, navigation links, or grouping related content. The Six Starlight Theme provides several card components including basic cards, link cards, and grid layouts.
Prop Name | Prop Type | Description |
---|---|---|
title | string | The title displayed at the top of the card |
icon | string | Optional icon name to display alongside the title |
children | ReactNode | The content to display inside the card |
Prop Name | Prop Type | Description |
---|---|---|
stagger | boolean | Whether to apply staggered animation effects to grid items |
children | ReactNode | Card components to arrange in the grid |
Prop Name | Prop Type | Description |
---|---|---|
title | string | The title displayed at the top of the link card |
description | string | Optional description text below the title |
href | string | The URL or path the card links to |
icon | string | Optional icon name to display alongside the title |
The basic Card
component displays content with an optional title and icon.
<Card title="Basic Card Example"> This is a simple card that displays content with a title. Perfect for highlighting important information or grouping related content.</Card>
Basic Card Example
This is a simple card that displays content with a title. Perfect for highlighting important information or grouping related content.
<Card title="Card with Icon" icon="star"> This card includes a star icon to draw attention and make it more visually distinctive.</Card>
Card with Icon
This card includes a star icon to draw attention and make it more visually distinctive.
Use CardGrid
to arrange multiple cards in a responsive grid layout.
<CardGrid> <Card title="Feature One" icon="star"> This card showcases the first feature with an icon and description. </Card> <Card title="Feature Two" icon="moon"> This card showcases the second feature with a different icon. </Card> <Card title="Feature Three" icon="heart"> This card showcases the third feature with another icon. </Card></CardGrid>
Feature One
This card showcases the first feature with an icon and description.
Feature Two
This card showcases the second feature with a different icon.
Feature Three
This card showcases the third feature with another icon.
<CardGrid stagger> <Card title="Staggered Card 1" icon="star"> This card appears with a staggered animation effect. </Card> <Card title="Staggered Card 2" icon="moon"> The stagger effect creates visual interest and guides the eye. </Card> <Card title="Staggered Card 3" icon="heart"> Each card appears with a slight delay for better UX. </Card></CardGrid>
Staggered Card 1
This card appears with a staggered animation effect.
Staggered Card 2
The stagger effect creates visual interest and guides the eye.
Staggered Card 3
Each card appears with a slight delay for better UX.
LinkCard
components are clickable cards that navigate to other pages or sections.
<LinkCard title="Getting Started Guide" description="Learn the basics of using the Six Starlight Theme with our comprehensive getting started guide." href="#"/>
<CardGrid> <LinkCard title="Documentation" description="Browse our comprehensive documentation" href="#" /> <LinkCard title="Examples" description="View practical examples and use cases" href="#" /> <LinkCard title="Components" description="Explore available components and their usage" href="#" /></CardGrid>
Cards automatically inherit the theme’s styling but you can customize their appearance using CSS custom properties.
Card grids automatically adjust their layout based on screen size:
The icon system supports various icon sets and can be customized through the theme configuration.