Card
TheVCard component is a versatile container that can be used to display content containing a variety of elements such as images, text, and actions. Cards are entry points to more detailed information.
Usage
Props
Title text displayed at the top of the card
Subtitle text displayed below the title
Main text content of the card
URL for a header image
Avatar image URL displayed before the title
Icon displayed before the title
Avatar image URL displayed after the title
Icon displayed after the title
Removes the card’s click functionality
Removes the card’s elevation
Applies hover effect with elevation change
Makes the card a link (automatically detected when using
to or href)Applies the ripple directive
Vue Router location for the card link
Standard anchor href attribute
Displays a loading bar at the top of the card
Applies border styles to the component
Applies specified color to the card background
Adjusts the vertical height. Options:
default, comfortable, compactElevation level (0-24)
Sets the height of the component
Sets the maximum height of the component
Sets the maximum width of the component
Sets the minimum height of the component
Sets the minimum width of the component
Sets the width of the component
Positions the element. Options: combinations of
top, bottom, start, endCSS position property. Options:
static, relative, fixed, absolute, stickyBorder radius of the card
Specify a custom HTML tag to use on the root element
Applies a distinct style. Options:
flat, text, elevated, tonal, outlined, plainSlots
default
The default slot for card content
image
Slot for custom header image content
item
Slot that replaces the default card item (title/subtitle area)
prepend
Slot for content before the title
title
Slot for custom title content
subtitle
Slot for custom subtitle content
append
Slot for content after the title
text
Slot for custom text content
actions
Slot for action buttons at the bottom of the card
loader
Slot for custom loading indicator