Card Component
The
Card
component is a container element with a pre-defined style. It provides a way to group and present related content in a flexible and extensible container with a shadow effect to give it a 'lifting' appearance.
Props
The
Card
component does not take any specific props.
Slots
Slot | Description |
---|---|
Default | The content to be displayed within the card. |
General Usage Notes
-
The
Card
component comes with a box-shadow effect to create the appearance of depth. This is particularly useful for distinguishing the card from the background, especially on light-colored themes. - Images placed as the first child within the card have styles applied to them to span the full width of the card.
-
The
Card
component has a hover effect that increases its scale, giving it a 'popping' effect. This effect can be disabled by adding a class ofno-hover
to the component. -
The
Card
component adapts to the size of its content, with aheight
set tofit-content
. -
The
Card
component is designed with a maximum width of 300px and a minimum padding of 20px.