<vega-card
padding="size-24"
margin="size-8"
variant="shadow"
background-color = 'bg-primary'
>
Content for the card goes here.
</vega-card>
The vega-card
is a design tool for containing and displaying content on a page in a flexible container, which can help group together semantically related pieces of information. They are used in a wide variety of places within UX design.
They are used for grouping information, and typically will contain a summary and a link to additional information.
They have the following characteristics:
Name | Description | Default |
---|---|---|
padding | This specifies the padding within the card container. It can be set as ResponsiveType or any sizing token. | |
margin | This specifies the margin for the card. It can be set as ResponsiveType or any sizing token | |
variant | Sepcifies the shadow or border for the card | |
background-color | This specifies the background color within the card container. It will accept any background color token. |
<vega-card
padding='size-8|12|16 etc | {default: size-12, M: {top: size-16, bottom: size-16,...}, ...}.'
margin='size-8|12|16 etc | {default: size-12, M: {top: size-16, bottom: size-16,...}, ...}.'
variant='sshadow | border'
background-color='bg-secondary etc.'
>
Child elements
</vega-card>
For more details, view in Storybook.
When nesting cards inside each other: