Card
Headless Accelerator's cards provide a flexible and extensible content container with multiple variants and options.
Basic structure is <uxf-card>
with <uxf-card-body>
inside.
#
AboutA card is a flexible and extensible content container. It includes options for headers and footers, a wide variety of content, contextual background colors, and powerful display options.
#
Basic CardBasic Card
#
Title and SubtitleBasic Card with Title and Subtitle
- Web Component
- React
- Angular
<uxf-card style="width: 18rem"> <uxf-card-body> <uxf-card-title>Card Title</uxf-card-title> <uxf-card-subtitle>Card Subtitle</uxf-card-subtitle> <uxf-card-text> Some quick example text to build on the card title and make up the bulk of the card's content. </uxf-card-text> <uxf-button style="margin-top: 5px" variant="primary">Go somewhere</uxf-button> </uxf-card-body></uxf-card>
<UxfCard style={{width: '18rem'}}> <UxfCardBody> <UxfCardTitle>Card Title</UxfCardTitle> <UxfCardSubtitle>Card Subtitle</UxfCardSubtitle> <UxfCardText>Some quick example text to build on the card title and make up the bulk of the card's content.</UxfCardText> <UxfButton style={{marginTop: '5px'}} variant="primary">Go somewhere</UxfButton> </UxfCardBody></UxfCard>
<uxf-card style="width: 18rem"> <uxf-card-body> <uxf-card-title>Card Title</uxf-card-title> <uxf-card-subtitle>Card Subtitle</uxf-card-subtitle> <uxf-card-text> Some quick example text to build on the card title and make up the bulk of the card's content. </uxf-card-text> <uxf-button style="margin-top: 5px" variant="primary">Go somewhere</uxf-button> </uxf-card-body></uxf-card>
#
Header and FooterHeader
Footer
- Web Component
- React
- Angular
<uxf-card> <div slot="header">Header</div> <uxf-card-body> <uxf-card-title>Card Title</uxf-card-title> <uxf-card-subtitle>Card Subtitle</uxf-card-subtitle> Some quick example text to build on the card title and make up the bulk of the card's content. </uxf-card-body> <div slot="footer">Footer</div></uxf-card>
<UxfCard> <div slot="header">Header</div> <UxfCardBody> <UxfCardTitle>Card Title</UxfCardTitle> <UxfCardSubtitle>Card Subtitle</UxfCardSubtitle> Some quick example text to build on the card title and make up the bulk of the card's content. </UxfCardBody> <div slot="footer">Footer</div></UxfCard>
<uxf-card> <div slot="header">Header</div> <uxf-card-body> <uxf-card-title>Card Title</uxf-card-title> <uxf-card-subtitle>Card Subtitle</uxf-card-subtitle> Some quick example text to build on the card title and make up the bulk of the card's content. </uxf-card-body> <div slot="footer">Footer</div></uxf-card>
#
Color VariationsCards include various options for customizing their backgrounds, borders, and color.
Header
Header
Header
Header
Header
Header
Header
Header
Header
#
Card ImageImage Inside Card
#
Image top#
ChromelessImage Top Chromeless Card Example
#
Chromeless with ButtonImage Top Chromeless Card with Button Example
Some quick example text to build on the card title and make up the bulk of the card's content.
- Web Component
- React
- Angular
<uxf-card> <uxf-card-image slot="top" src="https://source.unsplash.com/random/286x180"></uxf-card-image> <uxf-card-body> Some quick example text to build on the card title and make up the bulk of the card's content. </uxf-card-body></uxf-card>
<UxfCard> <UxfCardImage slot="top" src="https://source.unsplash.com/random/286x180"></UxfCardImage> <UxfCardBody> Some quick example text to build on the card title and make up the bulk of the card's content. </UxfCardBody></UxfCard>
<uxf-card> <uxf-card-image slot="top" src="https://source.unsplash.com/random/286x180"></uxf-card-image> <uxf-card-body> Some quick example text to build on the card title and make up the bulk of the card's content. </uxf-card-body></uxf-card>
#
Image Bottom- Web Component
- React
- Angular
<uxf-card> <uxf-card-image slot="bottom" src="https://source.unsplash.com/random/286x180"></uxf-card-image> <uxf-card-body> <uxf-card-title>Card Title</uxf-card-title> <uxf-card-subtitle>Card Subtitle</uxf-card-subtitle> Some quick example text to build on the card title and make up the bulk of the card's content. </uxf-card-body></uxf-card>
<UxfCard> <UxfCardImage slot="bottom" src="https://source.unsplash.com/random/286x180"></UxfCardImage> <UxfCardBody> <UxfCardTitle>Card Title</UxfCardTitle> <UxfCardSubtitle>Card Subtitle</UxfCardSubtitle> Some quick example text to build on the card title and make up the bulk of the card's content. </UxfCardBody></UxfCard>
<uxf-card> <uxf-card-image slot="bottom" src="https://source.unsplash.com/random/286x180"></uxf-card-image> <uxf-card-body> <uxf-card-title>Card Title</uxf-card-title> <uxf-card-subtitle>Card Subtitle</uxf-card-subtitle> Some quick example text to build on the card title and make up the bulk of the card's content. </uxf-card-body></uxf-card>
#
Image Hover#
Zoom In#
Cinematic- Web Component
- React
- Angular
<!-- zoomIn on hover --><uxf-card> <uxf-card-image zoomin slot="top" src="https://source.unsplash.com/random/286x180"> </uxf-card-image> <uxf-card-body> Some quick example text to build on the card title and make up the bulk of the card's content. </uxf-card-body></uxf-card>
<!-- cinematic effect on hover --><uxf-card> <uxf-card-image cinematic slot="top" src="https://source.unsplash.com/random/286x180"> </uxf-card-image> <uxf-card-body> Some quick example text to build on the card title and make up the bulk of the card's content. </uxf-card-body></uxf-card>
{/* zoomIn on hover */}<UxfCard> <UxfCardImage zoomin slot="top" src="https://source.unsplash.com/random/286x180"></UxfCardImage> <UxfCardBody> Some quick example text to build on the card title and make up the bulk of the card's content. </UxfCardBody></UxfCard>
{/*cinematic effect on hover*/}<UxfCard> <UxfCardImage cinematic slot="top" src="https://source.unsplash.com/random/286x180"></UxfCardImage> <UxfCardBody> Some quick example text to build on the card title and make up the bulk of the card's content. </UxfCardBody></UxfCard>
<!-- zoomIn on hover --><uxf-card> <uxf-card-image zoomin slot="top" src="https://source.unsplash.com/random/286x180"> </uxf-card-image> <uxf-card-body> Some quick example text to build on the card title and make up the bulk of the card's content. </uxf-card-body></uxf-card>
<!-- cinematic effect on hover --><uxf-card> <uxf-card-image cinematic slot="top" src="https://source.unsplash.com/random/286x180"> </uxf-card-image> <uxf-card-body> Some quick example text to build on the card title and make up the bulk of the card's content. </uxf-card-body></uxf-card>