BeeCard
A container to group content: rounded corners, a subtle border, a surface background, and an optional elevation.
import { BeeCard } from "@thaisrr/beedesign";
import "@thaisrr/beedesign/style.css";Usage
Put any content in the default slot. The default padding is md.
Every other Thursday, 6 to 8 pm, at the library.
Elevation
The elevation prop adds a shadow, from 0 (none, the default) to 3. In dark mode, shadows are deeper so they stay visible.
With a number, use the :elevation="2" syntax (with the colon), otherwise the value is read as text.
Padding
The padding prop sets the inner spacing. Use none when the content must touch the edges, for example an image.
With actions
A card combines well with the other components of the library.
Delete this draft?
The text will be permanently lost. This action cannot be undone.
API
Props
| Name | Type | Default | Description |
|---|---|---|---|
elevation | 0 | 1 | 2 | 3 | 0 | Drop shadow level. |
padding | "none" | "sm" | "md" | "lg" | "md" | Inner spacing. |
Slots
| Name | Description |
|---|---|
default | Content of the card. |
CSS variables used
--bd-color-surface, --bd-color-border, --bd-color-text, --bd-font-main, --bd-radius-md, --bd-space-md, --bd-space-lg, --bd-shadow-1, --bd-shadow-2, --bd-shadow-3, --bd-border-width.