Layout Components
A flexible container component that groups related content with consistent styling. Cards can contain text, images, and other components.
A simple card container.
This is a basic card with some content inside.
BasicCard.tsx
<Card> <Title>Card Title</Title> <Text>This is a basic card with some content inside.</Text></Card>
Cards come in different sizes such as xs
, sm
, md
, lg
, xl
.
Content for xs size
Content for sm size
Content for md size
Content for lg size
Content for xl size
CardSizes.tsx
<Row flexWrap> <Card xs> <Title xs>Card xs</Title> <Text xs>Content for xs size</Text> </Card> <Card sm> <Title sm>Card sm</Title> <Text sm>Content for sm size</Text> </Card> <Card md> <Title>Card md</Title> <Text>Content for md size</Text> </Card> <Card lg> <Title lg>Card lg</Title> <Text lg>Content for lg size</Text> </Card> <Card xl> <Title xl>Card xl</Title> <Text xl>Content for xl size</Text> </Card></Row>
Cards can have different background appearances.
Card with default background
Card with accent background
Card with primary background
Card with secondary background
Card with tertiary background
Card with success background
Card with danger background
Card with warning background
Card with info background
Card with link background
CardAppearances.tsx
<Row flexWrap> <Card default> <Title>default Card</Title> <Text>Card with default background</Text> </Card> <Card accent> <Title>accent Card</Title> <Text>Card with accent background</Text> </Card> <Card primary> <Title>primary Card</Title> <Text>Card with primary background</Text> </Card> <Card secondary> <Title>secondary Card</Title> <Text>Card with secondary background</Text> </Card> <Card tertiary> <Title>tertiary Card</Title> <Text>Card with tertiary background</Text> </Card> <Card success> <Title>success Card</Title> <Text>Card with success background</Text> </Card> <Card danger> <Title>danger Card</Title> <Text>Card with danger background</Text> </Card> <Card warning> <Title>warning Card</Title> <Text>Card with warning background</Text> </Card> <Card info> <Title>info Card</Title> <Text>Card with info background</Text> </Card> <Card link> <Title>link Card</Title> <Text>Card with link background</Text> </Card></Row>
Control card border appearance.
Card with border
Card with borderT
Card with borderB
Card with borderL
Card with borderR
Card with borderX
Card with borderY
Card with noBorder
CardBorders.tsx
<Row flexWrap> <Card border> <Title>Card border</Title> <Text>Card with border</Text> </Card> <Card borderT> <Title>Card borderT</Title> <Text>Card with borderT</Text> </Card> <Card borderB> <Title>Card borderB</Title> <Text>Card with borderB</Text> </Card> <Card borderL> <Title>Card borderL</Title> <Text>Card with borderL</Text> </Card> <Card borderR> <Title>Card borderR</Title> <Text>Card with borderR</Text> </Card> <Card borderX> <Title>Card borderX</Title> <Text>Card with borderX</Text> </Card> <Card borderY> <Title>Card borderY</Title> <Text>Card with borderY</Text> </Card> <Card noBorder> <Title>Card noBorder</Title> <Text>Card with noBorder</Text> </Card></Row>
Cards support different border radius styles.
Card with rounded corners
Card with sharp corners
CardShapes.tsx
<Row flexWrap> <Card rounded> <Title>Card rounded</Title> <Text>Card with rounded corners</Text> </Card> <Card sharp> <Title>Card sharp</Title> <Text>Card with sharp corners</Text> </Card></Row>
Cards can have drop shadows.
Card with shadow
Card with noShadow
CardwithShadow.tsx
<Row flexWrap> <Card shadow> <Title>Card shadow</Title> <Text>Card with shadow</Text> </Card> <Card noShadow> <Title>Card noShadow</Title> <Text>Card with noShadow</Text> </Card></Row>
Cards can have focus rings.
Card with ring
Card with noRing
CardwithRing.tsx
<Row flexWrap> <Card ring> <Title>Card ring</Title> <Text>Card with ring</Text> </Card> <Card noRing> <Title>Card noRing</Title> <Text>Card with noRing</Text> </Card></Row>
Control card internal padding.
Card with padding
Card with noPadding
CardPadding.tsx
<Row flexWrap> <Card padding> <Title>Card padding</Title> <Text>Card with padding</Text> </Card> <Card noPadding> <Title>Card noPadding</Title> <Text>Card with noPadding</Text> </Card></Row>
Control the direction of card content.
Content flows vertically
Another line
Content flows horizontally
CardFlexDirection.tsx
<Row flexWrap> <Card column> <Title>Column Direction</Title> <Text>Content flows vertically</Text> <Text>Another line</Text> </Card> <Card row> <Title>Row Direction</Title> <Text>Content flows horizontally</Text> </Card></Row>
Control spacing between card content.
Content with gap
Another line
Content with noGap
Another line
CardwithGap.tsx
<Row flexWrap> <Card gap> <Title>Card gap</Title> <Text>Content with gap</Text> <Text>Another line</Text> </Card> <Card noGap> <Title>Card noGap</Title> <Text>Content with noGap</Text> <Text>Another line</Text> </Card></Row>
Cards support filled and outline variants with typography color inheritance.
Typography inherits primary color
Typography inherits success color
Typography inherits danger color
FilledandOutlineCards.tsx
<Row flexWrap> <Card filled lg primary> <Title primary>Filled Primary Card</Title> <Text primary>Typography inherits primary color</Text> </Card> <Card lg outline success> <Title success>Outline Success Card</Title> <Text success>Typography inherits success color</Text> </Card> <Card danger filled lg> <Title danger>Filled Danger Card</Title> <Text danger>Typography inherits danger color</Text> </Card></Row>