CardAttributes

Attribute names of <vaadin-card>, for use with setAttribute.

Properties

Link copied to clipboard
const val cardTitle: String

The title of the card. When set, any custom slotted title is removed and this string-based title is used instead. If this title is used, an aria-labelledby attribute that points to the generated title element is set.

Link copied to clipboard
const val theme: String

The theme variants to apply to the component.

Link copied to clipboard

Sets the heading level (aria-level) for the string-based title. If not set, the level defaults to 2. Setting values outside the range 1, 6 can cause accessibility issues.