Card

Compose content, media, actions, and interaction states on a flexible surface.

Card

Basic (default)

basic is the implicit preset: a quiet title-and-body surface with optional header extras and footer actions.

Classic

Set type="classic" for the established media-first layout with overlay interactions.

Overlay

Set type="overlay" to reveal text over an image.

Split

Set type="split" for a compact side-by-side media layout.

Frosted

Set type="frosted" for a translucent caption over immersive media.

Reveal

Set type="reveal" for a centered caption that emerges below the media.

Profile

profile creates a complete identity card with portrait, supporting details, statistics, and actions.

Metric

metric gives one primary value, its change, a compact visualization, and context a clear dashboard hierarchy.

Article

article combines responsive editorial media, metadata, author context, and a clear reading action.

Solid surface (default)

Use texture="solid" for the regular solid surface without an additional material layer.

Liquid glass

texture="liquid-glass" uses a per-instance SVG displacement map to bend the actual backdrop through the translucent surface. Browsers without URL backdrop-filter support receive a saturated blur fallback.

Liquid glass 2

texture="liquid-glass-2" keeps the same Card surface, title, blur, shine, and animated backdrop, but swaps in the alternate component-transfer and specular SVG filter graph for direct comparison.

No effect

Use effect="none" when the Card should render without interactive decoration.

Spotlight

spotlight keeps the interior unchanged and reveals a local single-color border highlight near the pointer.

Gradient glow

gradient-glow combines a pointer-directed multicolor edge arc, a blurred outer glow, and a restrained inner highlight.

Hover effects

Omitting hover-effect preserves each preset’s original hover behavior. Explicit none disables surface movement and hover shadow changes; lift moves the surface up by 4px, while glow adds a shadow without movement. These options replace preset surface movement, scaling, and shadow feedback. Internal media and content reveals remain available. Add interactive for keyboard semantics when the whole card performs an action.

Orientation

Use horizontal to place media beside content while retaining the selected type’s presentation. On narrow screens, the arrangement returns to vertical.

Selection and loading

selectable supports controlled selection through v-model:selected. Loading cards keep their footprint while blocking interaction.

Shape

Set shape="square" locally or inherit it from s-config-provider.

Complete configuration

Adjust Card layout, orientation, texture, effect, geometry, color, and interaction states in one place.

API

PROPS

Property
Type
Values
Description
default
Example
More
title
String
String
Card title. The title slot takes precedence.
—
subtitle
String
String
Secondary text below the title.
—
text
String
String
Card description. The text slot takes precedence.
—
color
String
primary | success | danger | warn | warning | dark | text | light | secondary | RGB | RGBA | HEX | HSL | HSLA
Semantic accent used by colored surfaces and effects.
primary
texture
solid | liquid-glass | liquid-glass-2
Surface material, independent from layout and decorative effects.
solid
effect
none | spotlight | gradient-glow
Decorative interaction treatment, independent from layout and texture.
none
orientation
String
vertical | horizontal
Arrange media and content vertically or horizontally while retaining the selected type's presentation.
—
hover-effect
String
none | lift | glow
Visual hover and keyboard-focus feedback.
—
shape
String
rounded | square
Card corner geometry. Inherits ConfigProvider shape.
rounded
interactive
Boolean
true | false
Adds button semantics and keyboard focus to a clickable card.
false
selectable
Boolean
true | false
Makes the card a toggleable selection surface.
false
selected
Boolean
true | false
Controlled selected state. Supports v-model:selected.
false
loading
Boolean
true | false
Shows a stable skeleton and disables interaction.
false
type
basic | classic | overlay | split | frosted | reveal | profile | metric | article
Select a complete, named card preset. Numeric values 1-5 remain compatibility aliases.
basic

EVENTS

Event
Type
Description
default
Example
More
update:selected
Boolean
Emitted when a selectable card requests a selected-state change.
—
—
select
Boolean, MouseEvent
Emitted with the next state and triggering event after selection.
—
—

SLOTS

Slot
Scope
Description
default
Example
More
default
null
Add custom body content.
—
—
header
null
Add card header content.
—
—
extra
null
Add content at the end of the header.
—
—
media
null
Add image or video media to a structured card layout.
—
—
title
null
Customize the title.
—
—
subtitle
null
Customize the subtitle.
—
—
text
null
Customize the description.
—
—
footer
null
Replace the complete footer.
—
—
actions
null
Add footer actions to a structured card layout.
—
—
interactions
null
Add controls over the media area.
—
—
img
null
Add image or video content to a preset card.
—
—
buttons
null
Add buttons to a preset card.
—
—
Last Updated: 2026-10-28, 06:17:56 UTC
Copied