ComponentsSpecimen
Elevation Card
Shadow level display card showing a single elevation token with its name and token reference.
Preview
xs
--shadow-xssm
--shadow-smmd
--shadow-mdlg
--shadow-lgxl
--shadow-xlInstallation
npx visor add elevation-cardThis copies two files into your project:
components/ui/elevation-card/elevation-card.tsx— the componentcomponents/ui/elevation-card/elevation-card.module.css— the styles
Usage
import { ElevationCard } from '@/components/ui/elevation-card/elevation-card';
<ElevationCard token="--shadow-md" name="md" />API Reference
ElevationCardProps
| Prop | Type | Default | Description |
|---|---|---|---|
token* | string | — | CSS custom property for the shadow (e.g. "--shadow-md"). |
name* | string | — | Display name for the shadow level (e.g. "md"). |
className | string | — | Additional CSS class names to merge onto the element. |
Accessibility
ElevationCard is a documentation utility component. It uses box-shadow to visualize shadow tokens and does not convey interactive behavior. Render it inside a landmark region with an appropriate heading when used in design system documentation pages.