Skip to content

Deck

Use this as the main wrapper for your grouped cards.

Card
Card
Card
---
import { Card, Deck } from 'fulldev-ui'
---
<Deck>
<Card>Card</Card>
<Card>Card</Card>
<Card>Card</Card>
</Deck>

Props

structure

Type: 'bento' | 'carousel' | 'grid' | 'masonry' = 'grid'

Applies all styles & props of the chosen Structure component to this component.

For more information, see the page for each Structure component.

size

Type: size?: 'sm' | 'md' | 'lg'

Sets the size for this component and all its children.

theme

Type: theme?: 'light' | 'dark' | string

Changes the colors for this component and all its children.

Choose a predefined theme, or a custom value defined like explained in the theming guide.

as & HTML Attributes

Type: as?: HTMLTag = 'section'

Used to determine which HTML tag is used to render the component.

Based on the value, all HTML attributes of this tag are accepted as props too.

For a detailed explanation see Polymorphic props in the Astro documentation.