Cards can support multiple actions, media, and UI elements. Use the Card component to compose your own card components, to be used as entry points to more complex or detailed information.
Import
import {Card} from '@fuegokit/react'
Usage
Basic example:
<Cardsx={{alignItems: 'flex-start',backgroundColor: 'card.background',border: '1px solid',borderColor: 'border.default',borderRadius: '4px',display: 'flex',flexDirection: 'column',padding: 3,width: 'clamp(250px, 45%, 308px)'}}><Card.Content><Card.Header><Textas="h2"sx={{fontSize: 2,fontWeight: 'fontWeights.3'}}>Global Configuration</Text></Card.Header><Card.Bodysx={{padding: '12px 0px'}}><Textas="p"sx={{color: 'text.subtlest',fontSize: 2,fontWeight: 'normal',lineHeight: 'default'}}>Configure notifications, auto-refresh issues, showing transitions activity on issue views, and more.</Text></Card.Body><Card.Footersx={{marginTop: 'auto',padding: '12px 0 6px 0'}}><AtlasButton as="button" onClick={() => alert('Go to configiuration')}>Go to configuration</AtlasButton></Card.Footer></Card.Content></Card>
A more complex example might include Media, a Body, and a Footer:
<Cardas="article"sx={{backgroundColor: 'background.neutral.subtle.default',border: '1px solid',borderColor: 'border.default',borderRadius: 2,width: 'clamp(280px, 33.333%, 328px)'}}><Card.Mediaalt="A sea otter looks into the camera"src="https://static01.nyt.com/images/2021/07/08/science/08TB-OTTERS1/merlin_190551999_3680585e-dbdd-4bff-96ad-0d74d1239df8-jumbo.jpg?quality=75&auto=webp"/><Card.Contentsx={{display: 'flex',flexDirection: 'column',gap: '32px',justifyContent: 'space-between',padding: 3}}><Card.Header><Text as="h5" color="text.subtlest" fontSize="2" fontWeight="normal">Animal of the day</Text><Text as="h2" color="text.default" fontSize="5">Otter</Text></Card.Header><Card.Body><Text as="p" color="text.subtle" fontSize="2">Otters have long, slim bodies and relatively short limbs. Their most striking anatomical features are thepowerful webbed feet they use to swim, and their seal-like ability to hold their breath underwater.</Text></Card.Body><Card.Footer><AtlasButton appearance={`primary`} as="button" onClick={function noRefCheck() {}}>Sponsor an Otter</AtlasButton><AtlasButtonappearance={`subtle-link`}as="a"href="https://www.doi.gov/blog/12-facts-about-otters-sea-otter-awareness-week"sx={{color: 'text.subtlest'}}><span><AkLightbulbIcon size={`small`} /></span>Learn more</AtlasButton></Card.Footer>{' '}</Card.Content></Card>