Skip to content

BeeCard ​

A container to group content: rounded corners, a subtle border, a surface background, and an optional elevation.

ts
import { BeeCard } from "@thaisrr/beedesign";
import "@thaisrr/beedesign/style.css";

Usage ​

Put any content in the default slot. The default padding is md.

Writing workshop

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.

Elevation 0
Elevation 1
Elevation 2
Elevation 3

Padding ​

The padding prop sets the inner spacing. Use none when the content must touch the edges, for example an image.

none
sm
md (default)
lg

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 ​

NameTypeDefaultDescription
elevation0 | 1 | 2 | 30Drop shadow level.
padding"none" | "sm" | "md" | "lg""md"Inner spacing.

Slots ​

NameDescription
defaultContent 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.