Skip to content

Latest commit

 

History

History
1697 lines (1430 loc) · 36.6 KB

API.md

File metadata and controls

1697 lines (1430 loc) · 36.6 KB

Benchlight public API

Package exports

  • ./css/base.css
  • ./css/components/*.css
  • ./css/fonts.css
  • ./css/index.css
  • ./css/layout.css
  • ./css/motion.css
  • ./css/tints.css
  • ./css/tokens.css
  • ./css/type.css
  • ./dist/appearance.min.js
  • ./dist/benchlight.min.css
  • ./dist/fonts.min.css
  • ./dist/modules/*.min.css
  • ./fonts/subset/*
  • ./js/appearance.js
  • ./js/prepaint-script.mjs
  • ./js/prepaint.js
  • ./nuxt
  • ./package.json
  • ./tailwind/theme.css
  • ./tokens
  • ./vite
  • ./vue

dist files

  • dist/appearance.min.js
  • dist/benchlight.min.css
  • dist/fonts.min.css
  • dist/modules/anchored.min.css
  • dist/modules/appearance.min.css
  • dist/modules/base.min.css
  • dist/modules/btn.min.css
  • dist/modules/checkbox.min.css
  • dist/modules/colophon.min.css
  • dist/modules/dialog.min.css
  • dist/modules/disclosure.min.css
  • dist/modules/eq.min.css
  • dist/modules/field.min.css
  • dist/modules/fieldset.min.css
  • dist/modules/index-row.min.css
  • dist/modules/layout.min.css
  • dist/modules/led.min.css
  • dist/modules/lightbox.min.css
  • dist/modules/link-arrow.min.css
  • dist/modules/log.min.css
  • dist/modules/marquee.min.css
  • dist/modules/media.min.css
  • dist/modules/meta.min.css
  • dist/modules/meter.min.css
  • dist/modules/motion.min.css
  • dist/modules/msg.min.css
  • dist/modules/number-field.min.css
  • dist/modules/pagination.min.css
  • dist/modules/popover.min.css
  • dist/modules/prev-next.min.css
  • dist/modules/prose.min.css
  • dist/modules/radio.min.css
  • dist/modules/readout.min.css
  • dist/modules/section-head.min.css
  • dist/modules/segmented.min.css
  • dist/modules/site-bar.min.css
  • dist/modules/skip-link.min.css
  • dist/modules/spec-panel.min.css
  • dist/modules/tab-bar.min.css
  • dist/modules/table.min.css
  • dist/modules/tabs.min.css
  • dist/modules/telemetry.min.css
  • dist/modules/tints.min.css
  • dist/modules/toast.min.css
  • dist/modules/toggle.min.css
  • dist/modules/tokens.min.css
  • dist/modules/tooltip.min.css
  • dist/modules/type.min.css

benchlight/vue exports

  • APPEARANCE_ATTRIBUTE
  • APPEARANCE_STORAGE_KEY
  • BlAppearanceSwitch
  • BlButton
  • BlCheckbox
  • BlColophon
  • BlDialog
  • BlDisclosure
  • BlEqBars
  • BlField
  • BlIndex
  • BlIndexRow
  • BlInput
  • BlLed
  • BlLightbox
  • BlLinkArrow
  • BlLog
  • BlMarquee
  • BlMedia
  • BlMeta
  • BlMeter
  • BlMsg
  • BlNumberField
  • BlPagination
  • BlPopover
  • BlPrevNext
  • BlProgress
  • BlProse
  • BlRadio
  • BlRadioGroup
  • BlRange
  • BlReadout
  • BlSectionHead
  • BlSegmented
  • BlSegmentedNav
  • BlSelect
  • BlSiteBar
  • BlSiteBarLink
  • BlSkipLink
  • BlSpecPanel
  • BlSpecRow
  • BlTabBar
  • BlTabBarItem
  • BlTable
  • BlTabs
  • BlTelemetry
  • BlTelemetryCell
  • BlTextarea
  • BlToaster
  • BlToggle
  • BlTooltip
  • FIELD_CONTEXT
  • ansiToSegments
  • riseDelay
  • useActiveSection
  • useAppearance
  • useFollowScroll
  • useMarquee
  • useReducedMotion
  • useScrollLifted
  • useToast

Nuxt auto-imports

Default Bl prefix; autoImports: { prefix } changes them (prefix: '' keeps the bare names).

  • blAnsiToSegments
  • blRiseDelay
  • useBlActiveSection
  • useBlAppearance
  • useBlFollowScroll
  • useBlMarquee
  • useBlReducedMotion
  • useBlScrollLifted
  • useBlToast

Exported types

ActiveSectionOptions

interface ActiveSectionOptions {
    offset?: MaybeRefOrGetter<number>;
}

AnsiSegment

interface AnsiSegment {
    text: string;
    className?: string;
}

AppearanceLabels

interface AppearanceLabels {
    legend: string;
    auto: string;
    light: string;
    dark: string;
    marks?: LabelOverrides<{
        auto: string;
        light: string;
        dark: string;
    }>;
}

AppearanceMode

type AppearanceMode = 'auto' | 'light' | 'dark';

ButtonVariant

type ButtonVariant = 'primary' | 'secondary' | 'danger' | 'ghost';

ColumnBase

interface ColumnBase<Row extends object> {
    label: string;
    align?: 'start' | 'end' | 'center';
    numeric?: boolean;
    width?: string;
    primary?: boolean;
}

DerivedColumn

interface DerivedColumn<Row extends object, V = unknown> extends ColumnBase<Row> {
    key: string;
    value: (row: Row) => V;
    slot?: never;
    format?(value: V, row: Row): string;
    sortable?: boolean;
    sortBy?: (row: Row) => string | number | null | undefined;
    total?: TableTotal<Row>;
    formatTotal?: (value: number, rows: Row[]) => string;
}

DialogCloseEvent

interface DialogCloseEvent {
    reason: DialogCloseReason;
    returnValue: string;
}

DialogCloseReason

type DialogCloseReason = 'button' | 'backdrop' | 'escape' | 'program' | 'native';

DialogLabels

interface DialogLabels {
    close: string;
}

FieldContext

interface FieldContext {
    id: Readonly<Ref<string>>;
    describedBy: Readonly<Ref<string | undefined>>;
    invalid: Readonly<Ref<boolean>>;
}

FollowScrollOptions

interface FollowScrollOptions {
    enabled?: MaybeRefOrGetter<boolean>;
    threshold?: number;
}

KeyColumn

type KeyColumn<Row extends object> = {
    [K in Extract<keyof Row, string>]-?: ColumnBase<Row> & {
        key: K;
        value?: never;
        slot?: never;
        format?: (value: Row[K], row: Row) => string;
        sortable?: boolean;
        sortBy?: (row: Row) => string | number | null | undefined;
        total?: TableTotal<Row>;
        formatTotal?: (value: number, rows: Row[]) => string;
    };
}[Extract<keyof Row, string>];

LabelOverrides

type LabelOverrides<T> = {
    [K in keyof T]?: T[K] | undefined;
};

LightboxItem

interface LightboxItem {
    src?: string;
    alt?: string;
    caption?: string;
    srcset?: string;
    sizes?: string;
    width?: number;
    height?: number;
    key?: string | number;
}

LightboxLabels

interface LightboxLabels<T extends LightboxItem = LightboxItem> {
    dialog: string;
    close: string;
    previous: string;
    next: string;
    failed: string;
    zoomIn: string;
    zoomOut: string;
    resetZoom: string;
    position: (index: number, total: number, item: T) => string;
}

LinkAs

type LinkAs = string | Component;

LinkCurrent

type LinkCurrent = boolean | 'page' | 'step' | 'location';

LinkProps

interface LinkProps {
    as?: LinkAs;
    to?: LinkTo;
    href?: string;
}

LinkTo

type LinkTo = string | object;

MarqueeLabels

interface MarqueeLabels {
    pause: string;
}

MarqueeOptions

interface MarqueeOptions {
    speed?: number;
    pause?: number;
    overshoot?: number;
    paused?: MaybeRefOrGetter<boolean>;
}

MetaItem

type MetaItem = string | {
    text: string;
    class?: string;
};

PaginationLabels

interface PaginationLabels {
    prev: string;
    next: string;
    page: (n: number) => string;
    pageOf: (page: number, pages: number) => string;
    range: (from: number, to: number, total: number) => string;
}

PopoverAlign

type PopoverAlign = 'start' | 'center' | 'end';

PopoverSide

type PopoverSide = 'top' | 'bottom' | 'start' | 'end';

PopoverTriggerBind

interface PopoverTriggerBind {
    id: string;
    type: 'button';
    'aria-expanded': 'true' | 'false';
    'aria-controls': string;
    popovertarget: string;
    style: {
        anchorName: string;
    };
}

PrevNextItem

interface PrevNextItem extends Pick<LinkProps, 'to' | 'href'> {
    title: string;
}

PrevNextLabels

interface PrevNextLabels {
    prev: string;
    next: string;
}

ResolvedAppearance

type ResolvedAppearance = 'light' | 'dark';

RiseDelayOptions

interface RiseDelayOptions {
    base?: number;
    step?: number;
    cap?: number;
}

SegmentedNavItem

type SegmentedNavItem = LinkProps & {
    label: string;
    current?: LinkCurrent;
};

SegmentedOption

interface SegmentedOption<T> {
    value: T;
    label: string;
    disabled?: boolean;
}

SelectOption

interface SelectOption<T> {
    value: T;
    label: string;
}

SlotColumn

interface SlotColumn<Row extends object> extends ColumnBase<Row> {
    key: string;
    slot: true;
    value?: never;
    format?: never;
    sortable?: false;
    sortBy?: never;
    total?: never;
    formatTotal?: never;
}

SpecRowData

interface SpecRowData extends LinkProps {
    label: string;
    value: string;
    external?: boolean;
}

StatusTone

type StatusTone = 'neutral' | 'success' | 'danger';

TabItem

interface TabItem<T extends string | number = string | number> {
    value: T;
    label: string;
    disabled?: boolean;
}

TableColumn

type TableColumn<Row extends object = Record<string, unknown>> = KeyColumn<Row> | DerivedColumn<Row> | SlotColumn<Row>;

TableLabels

interface TableLabels {
    total: string;
    empty: string;
    sortStrip: string;
    sortAscending: string;
    sortDescending: string;
    pages: (caption: string) => string;
}

TableSort

interface TableSort {
    key: string;
    dir: 'asc' | 'desc';
}

TableTotal

type TableTotal<Row> = 'sum' | 'avg' | 'count' | ((rows: Row[]) => number);

ToastAction

interface ToastAction {
    label: string;
    onClick: () => void;
}

ToastOptions

interface ToastOptions {
    message: string;
    tone?: ToastTone;
    action?: ToastAction;
    duration?: number;
    id?: string;
}

ToastTone

type ToastTone = StatusTone;

ToasterLabels

interface ToasterLabels {
    dismiss: string;
    actionHint: (label: string) => string;
}

TooltipTriggerBind

interface TooltipTriggerBind {
    'aria-describedby': string;
    style: {
        anchorName: string;
    };
    onPointerenter: (e: PointerEvent) => void;
    onPointerleave: (e: PointerEvent) => void;
    onFocus: (e: FocusEvent) => void;
    onBlur: (e: FocusEvent) => void;
}

Components

BlAppearanceSwitch

prop type required default
labels Partial<LabelOverrides<AppearanceLabels>> | undefined no

Slots: none Events: none Exposed: none

BlButton

prop type required default
ariaLabel string | undefined no
as LinkAs | undefined no
disabled boolean | undefined no
href string | undefined no
pill boolean | undefined no
pressed boolean | undefined no undefined
to LinkTo | undefined no
type "button" | "submit" | "reset" | undefined no "button"
variant "primary" | "secondary" | "danger" | "ghost" | undefined no "primary"

Slots: icon Events: none Exposed: none

BlCheckbox

prop type required default
announce boolean | undefined no
disabled boolean | undefined no
error string | undefined no
hint string | undefined no
indeterminate boolean | undefined no false
label string yes
modelValue boolean | undefined no false
name string | undefined no
value string | undefined no

Slots: none Events: update:indeterminate, update:modelValue Exposed: none

BlColophon

prop type required default
items string[] | undefined no []

Slots: actions, default Events: none Exposed: none

BlDialog

prop type required default
description string | undefined no
dismissible boolean | undefined no true
labels Partial<LabelOverrides<DialogLabels>> | undefined no
open boolean yes
title string yes

Slots: default, footer Events: close, update:open Exposed: none

BlDisclosure

prop type required default
name string | undefined no
open boolean | undefined no false
summary string | undefined no

Slots: default, summary Events: update:open Exposed: none

BlEqBars

prop type required default
active boolean | undefined no

Slots: none Events: none Exposed: none

BlField

prop type required default
announce boolean | undefined no
error string | undefined no
hint string | undefined no
id string | undefined no
label string yes

Slots: default Slot props: default { id: string; describedBy: string | undefined; invalid: boolean; } Events: none Exposed: none

BlIndex

prop type required default
grid boolean | undefined no
ruledTop boolean | undefined no

Slots: default Events: none Exposed: none

BlIndexRow

prop type required default
as LinkAs | undefined no
compact boolean | undefined no
current LinkCurrent | undefined no
href string | undefined no
to LinkTo | undefined no

Slots: default, icon, meta, title Events: none Exposed: none

BlInput

prop type required default
disabled boolean | undefined no
modelValue string | undefined no ""
type "text" | "email" | "password" | "search" | "tel" | "url" | undefined no "text"

Slots: none Events: update:modelValue Exposed: none

BlLed

prop type required default
ariaLabel string | undefined no
tone StatusTone | undefined no "neutral"

Slots: none Events: none Exposed: none

BlLightbox

prop type required default
announce "position" | "position+caption" | undefined no "position"
index number | undefined no 0
items readonly T[] yes
labels Partial<LabelOverrides<LightboxLabels<T>>> | undefined no
loop boolean | undefined no false
maxZoom number | undefined no
open boolean yes
preload number | false | undefined no 1
title string | undefined no
zoom number | undefined no 1
zoomControls boolean | undefined no true
zoomable boolean | undefined no false

Slots: actions, caption, default, title Slot props: actions { item: T; index: number; }, caption { item: T; index: number; }, default { item: T; index: number; loaded: (size?: { width: number; height: number; } | undefined) => void; failed: () => void; }, title { item: T; index: number; } Events: close, update:index, update:open, update:zoom Exposed: go, next, previous, resetZoom, zoomTo

BlLinkArrow

prop type required default
as LinkAs | undefined no
direction "right" | "left" | "up-right" | undefined no "right"
href string | undefined no
quiet boolean | undefined no
to LinkTo | undefined no

Slots: default, icon Events: none Exposed: none

BlLog

prop type required default
ariaLabel string | undefined no "Log"
follow boolean | undefined no true
lines string[] yes
offset number | undefined no 0

Prop notes:

  • offset: Absolute index of lines[0], default 0. When a capped buffer drops its oldest line, advance this by one so surviving rows keep their DOM nodes instead of every row being re-patched (which makes screen readers re-announce the log).

Slots: none Events: none Exposed: none

BlMarquee

prop type required default
contentKey unknown no
labels Partial<LabelOverrides<MarqueeLabels>> | undefined no
paused boolean | undefined no false
title string | undefined no

Slots: default Events: update:paused Exposed: refresh

BlMedia

prop type required default
align "start" | "center" | undefined no "start"
as "div" | "li" | "article" | undefined no "div"

Slots: aside, default, figure Events: none Exposed: none

BlMeta

prop type required default
as string | undefined no "p"
items MetaItem[] yes
separator boolean | undefined no

Slots: none Events: none Exposed: none

BlMeter

prop type required default
ariaLabel string | undefined no
label string | undefined no
showValue boolean | undefined no
value number yes
valueText string | undefined no

Prop notes:

  • ariaLabel: Accessible name when there is no visible label.
  • label: Visible text above the bar; it names the bar.

Slots: none Events: none Exposed: none

BlMsg

prop type required default
tone "danger" | "neutral" | "success" | undefined no "neutral"

Slots: default Events: none Exposed: none

BlNumberField

prop type required default
disabled boolean | undefined no
max number | undefined no
min number | undefined no
modelValue number | null | undefined no null
step number | undefined no

Slots: none Events: update:modelValue Exposed: none

BlPagination

prop type required default
ariaLabel string | undefined no
labels Partial<LabelOverrides<PaginationLabels>> | undefined no
page number | undefined no 1
pageSize number yes
siblings number | undefined no 1
total number yes

Prop notes:

  • ariaLabel: Accessible name of the nav.

Slots: none Events: update:page Exposed: none

BlPopover

prop type required default
align PopoverAlign | undefined no "center"
ariaLabel string | undefined no
open boolean | undefined no false
side PopoverSide | undefined no "bottom"

Slots: default, trigger Slot props: trigger { bind: PopoverTriggerBind; } Events: update:open Exposed: none

BlPrevNext

prop type required default
ariaLabel string | undefined no "Pagination"
labels Partial<LabelOverrides<PrevNextLabels>> | undefined no
linkAs LinkAs | undefined no "a"
next PrevNextItem | null | undefined no
prev PrevNextItem | null | undefined no

Slots: none Events: none Exposed: none

BlProgress

prop type required default
ariaLabel string | undefined no
label string | undefined no
showValue boolean | undefined no
value number | null yes
valueText string | undefined no

Prop notes:

  • ariaLabel: Accessible name when there is no visible label.
  • label: Visible text above the bar; it names the bar.

Slots: none Events: none Exposed: none

BlProse

prop type required default
as string | undefined no "div"

Slots: default Events: none Exposed: none

BlRadio

prop type required default
disabled boolean | undefined no
hint string | undefined no
label string yes
value string | number yes

Slots: none Events: none Exposed: none

BlRadioGroup

prop type required default
announce boolean | undefined no
disabled boolean | undefined no
error string | undefined no
hint string | undefined no
legend string yes
modelValue string | number | undefined no
name string | undefined no
required boolean | undefined no

Slots: default Events: update:modelValue Exposed: none

BlRange

prop type required default
disabled boolean | undefined no
format ((value: number) => string) | undefined no
max number | undefined no 100
min number | undefined no 0
modelValue number | undefined no
step number | undefined no 1

Slots: none Events: update:modelValue Exposed: none

BlReadout

prop type required default
unit string | undefined no
value string | number yes

Slots: none Events: none Exposed: none

BlSectionHead

prop type required default
bar boolean | undefined no
eyebrow string | undefined no
heading string | undefined no
level 1 | 2 | 3 | 4 | 5 | 6 | undefined no 2
ruled boolean | undefined no

Slots: actions Events: none Exposed: none

BlSegmented

prop type required default
ariaLabel string | undefined no
compact boolean | undefined no
form string | undefined no
modelValue T | undefined no
name string | undefined no
options readonly SegmentedOption<T>[] yes

Prop notes:

  • form: Id of a form outside the group; the radios belong to it, so its reset reaches them.

Slots: none Events: update:modelValue Exposed: none

BlSegmentedNav

prop type required default
ariaLabel string | undefined no
compact boolean | undefined no
items SegmentedNavItem[] yes
linkAs LinkAs | undefined no "a"

Slots: none Events: none Exposed: none

BlSelect

prop type required default
disabled boolean | undefined no
modelValue T | undefined no
options readonly SelectOption<T>[] yes

Slots: none Events: update:modelValue Exposed: none

BlSiteBar

prop type required default
ariaLabel string | undefined no "Primary"
lift number | false | undefined no 24

Slots: actions, brand, nav Events: none Exposed: none

BlSiteBarLink

prop type required default
as LinkAs | undefined no
current LinkCurrent | undefined no
href string | undefined no
to LinkTo | undefined no

Slots: default Events: none Exposed: none

BlSkipLink

prop type required default
target string | undefined no "#main-content"

Slots: default Events: none Exposed: none

BlSpecPanel

prop type required default
rows SpecRowData[] | undefined no []

Slots: default Events: none Exposed: none

BlSpecRow

prop type required default
as LinkAs | undefined no
external boolean | null | undefined no null
href string | undefined no
label string yes
to LinkTo | undefined no
value string | undefined no

Slots: default Events: none Exposed: none

BlTabBar

prop type required default
ariaLabel string | undefined no "Primary"

Slots: default Events: none Exposed: none

BlTabBarItem

prop type required default
as LinkAs | undefined no
current LinkCurrent | undefined no
href string | undefined no
to LinkTo | undefined no

Slots: default, icon Events: none Exposed: none

BlTable

prop type required default
caption string yes
captionHidden boolean | undefined no
columns readonly C[] yes
compact boolean | undefined no
labels Partial<LabelOverrides<TableLabels>> | undefined no
locale string | undefined no
manual boolean | undefined no
onRowActivate ((row: Row) => void) | undefined no
page number | undefined no 1
pageSize number | undefined no
paginationLabels Partial<LabelOverrides<PaginationLabels>> | undefined no
rowKey Extract<keyof Row, string> | ((row: Row) => string | number) | undefined no
rowLink ((row: Row) => { as?: LinkAs | undefined; to?: LinkTo | undefined; href?: string | undefined; }) | undefined no
rows readonly Row[] yes
scroll boolean | undefined no
sort { key: string; dir: "asc" | "desc"; } | null | undefined no null
totalRows number | undefined no
totals Record<string, string | number> | undefined no

Prop notes:

  • locale: Sort collation locale, e.g. 'lv'. Defaults to 'en', so server and client agree.
  • onRowActivate: What @row-activate compiles to. Its presence makes rows interactive (a primary-cell button).

Slots: caption, empty, footer Dynamic slots: cell-<key>, head-<key> Slot props: footer { rows: Row[]; }, cell-<key> { row: Row; value: by column kind, Row[key] (key), value() result (derived), undefined (slot-only), unknown if keys are string; column: C }, head-<key> { column: C } Events: update:page, update:sort Exposed: none

BlTabs

prop type required default
activation "manual" | "auto" | undefined no "auto"
ariaLabel string | undefined no
items readonly TabItem<T>[] yes
modelValue T | undefined no

Slots: none Dynamic slots: panel-<value> Slot props: panel-<value> {} Events: update:modelValue Exposed: none

BlTelemetry

prop type required default
columns string | undefined no

Slots: default Events: none Exposed: none

BlTelemetryCell

prop type required default
label string yes

Slots: default Events: none Exposed: none

BlTextarea

prop type required default
disabled boolean | undefined no
modelValue string | undefined no ""
rows number | undefined no 4

Slots: none Events: update:modelValue Exposed: none

BlToaster

prop type required default
ariaLabel string | undefined no "Notifications"
labels Partial<LabelOverrides<ToasterLabels>> | undefined no
max number | undefined no 3

Slots: none Events: none Exposed: none

BlToggle

prop type required default
announce boolean | undefined no
disabled boolean | undefined no
error string | undefined no
hint string | undefined no
label string yes
modelValue boolean | undefined no false
name string | undefined no
value string | undefined no

Slots: none Events: update:modelValue Exposed: none

BlTooltip

prop type required default
align PopoverAlign | undefined no "center"
delay number | undefined no 400
side PopoverSide | undefined no "top"
text string yes

Slots: trigger Slot props: trigger { bind: TooltipTriggerBind; } Events: none Exposed: none

CSS classes

  • bl-annotation
  • bl-ansi-30
  • bl-ansi-31
  • bl-ansi-32
  • bl-ansi-33
  • bl-ansi-34
  • bl-ansi-35
  • bl-ansi-36
  • bl-ansi-37
  • bl-ansi-90
  • bl-ansi-91
  • bl-ansi-92
  • bl-ansi-93
  • bl-ansi-94
  • bl-ansi-95
  • bl-ansi-96
  • bl-ansi-97
  • bl-appearance
  • bl-appearance__option
  • bl-appearance__track
  • bl-btn
  • bl-btn--danger
  • bl-btn--ghost
  • bl-btn--icon
  • bl-btn--pill
  • bl-btn--secondary
  • bl-btn__icon
  • bl-checkbox
  • bl-checkbox__box
  • bl-checkbox__control
  • bl-checkbox__error
  • bl-checkbox__hint
  • bl-checkbox__input
  • bl-checkbox__label
  • bl-col
  • bl-colophon
  • bl-colophon__inner
  • bl-colophon__items
  • bl-dialog
  • bl-dialog__body
  • bl-dialog__close
  • bl-dialog__description
  • bl-dialog__foot
  • bl-dialog__head
  • bl-dialog__panel
  • bl-dialog__title
  • bl-dialog__toasts
  • bl-disclosure
  • bl-disclosure__body
  • bl-disclosure__chevron
  • bl-disclosure__summary
  • bl-disclosure__title
  • bl-display
  • bl-display--lg
  • bl-display--md
  • bl-display--xl
  • bl-eq
  • bl-eq--active
  • bl-eq__bar
  • bl-field
  • bl-field__error
  • bl-field__hint
  • bl-field__label
  • bl-fieldset
  • bl-fieldset--inline
  • bl-fieldset--invalid
  • bl-fieldset__error
  • bl-fieldset__hint
  • bl-fieldset__legend
  • bl-index
  • bl-index--grid
  • bl-index--ruled-top
  • bl-index-row
  • bl-index-row--compact
  • bl-index-row__desc
  • bl-index-row__icon
  • bl-index-row__meta
  • bl-index-row__title
  • bl-index__item
  • bl-input
  • bl-led
  • bl-led--danger
  • bl-led--on
  • bl-lede
  • bl-lightbox
  • bl-lightbox__actions
  • bl-lightbox__bar
  • bl-lightbox__caption
  • bl-lightbox__close
  • bl-lightbox__count
  • bl-lightbox__frame
  • bl-lightbox__media
  • bl-lightbox__message
  • bl-lightbox__nav
  • bl-lightbox__nav--next
  • bl-lightbox__nav--prev
  • bl-lightbox__readout
  • bl-lightbox__stage
  • bl-lightbox__stage--zoomable
  • bl-lightbox__title
  • bl-lightbox__toasts
  • bl-lightbox__zoom
  • bl-link-arrow
  • bl-link-arrow--quiet
  • bl-link-arrow__icon
  • bl-log
  • bl-marquee
  • bl-marquee__content
  • bl-marquee__toggle
  • bl-marquee__viewport
  • bl-media
  • bl-media--center
  • bl-media__aside
  • bl-media__body
  • bl-media__figure
  • bl-meta
  • bl-meta--sep
  • bl-meta__key
  • bl-meter
  • bl-meter--indeterminate
  • bl-meter-field
  • bl-meter-field__head
  • bl-meter-field__label
  • bl-meter-field__value
  • bl-meter__fill
  • bl-msg
  • bl-msg--danger
  • bl-msg--success
  • bl-msg__text
  • bl-page-enter-active
  • bl-page-enter-from
  • bl-page-leave-active
  • bl-page-leave-to
  • bl-pagination
  • bl-pagination__compact
  • bl-pagination__gap
  • bl-pagination__item
  • bl-pagination__list
  • bl-pagination__page
  • bl-pagination__range
  • bl-popover
  • bl-prev-next
  • bl-prev-next__icon
  • bl-prev-next__label
  • bl-prev-next__link
  • bl-prev-next__link--next
  • bl-prev-next__link--prev
  • bl-prev-next__title
  • bl-prose
  • bl-radio
  • bl-radio__control
  • bl-radio__dot
  • bl-radio__hint
  • bl-radio__input
  • bl-radio__label
  • bl-range
  • bl-range__value
  • bl-readout
  • bl-readout__unit
  • bl-readout__value
  • bl-rise
  • bl-ruler
  • bl-section-head
  • bl-section-head--bar
  • bl-section-head--ruled
  • bl-section-head__actions
  • bl-section-head__eyebrow
  • bl-section-head__heading
  • bl-segmented
  • bl-segmented--compact
  • bl-segmented__item
  • bl-select
  • bl-select-wrap
  • bl-silkscreen
  • bl-site-bar
  • bl-site-bar__actions
  • bl-site-bar__brand
  • bl-site-bar__inner
  • bl-site-bar__link
  • bl-site-bar__nav
  • bl-site-bar__navwrap
  • bl-skip-link
  • bl-spec-panel
  • bl-spec-row
  • bl-spec-row__label
  • bl-spec-row__value
  • bl-sr-only
  • bl-tab-bar
  • bl-tab-bar__icon
  • bl-tab-bar__item
  • bl-tab-bar__label
  • bl-table
  • bl-table--compact
  • bl-table--scroll
  • bl-table__action
  • bl-table__center
  • bl-table__empty
  • bl-table__end
  • bl-table__label
  • bl-table__num
  • bl-table__primary
  • bl-table__scroller
  • bl-table__sort
  • bl-table__sort-icon
  • bl-table__sort-strip
  • bl-table__sort-strip-label
  • bl-table__table
  • bl-table__total
  • bl-tabs
  • bl-tabs__list
  • bl-tabs__panel
  • bl-tabs__tab
  • bl-telemetry
  • bl-telemetry__cell
  • bl-telemetry__cells
  • bl-telemetry__label
  • bl-telemetry__value
  • bl-textarea
  • bl-tint-copper
  • bl-tint-danger
  • bl-tint-phosphor
  • bl-tint-trace
  • bl-toast
  • bl-toast--danger
  • bl-toast--success
  • bl-toast-enter-active
  • bl-toast-enter-from
  • bl-toast-leave-active
  • bl-toast-leave-to
  • bl-toast-move
  • bl-toast__action
  • bl-toast__dismiss
  • bl-toast__mark
  • bl-toast__message
  • bl-toaster
  • bl-toaster__list
  • bl-toggle
  • bl-toggle__control
  • bl-toggle__error
  • bl-toggle__hint
  • bl-toggle__input
  • bl-toggle__label
  • bl-toggle__thumb
  • bl-toggle__track
  • bl-tooltip

Hook-only classes

  • bl-field--invalid
  • bl-pagination__next
  • bl-pagination__prev
  • bl-radio-group
  • bl-range__input

Script-set data attributes

  • data-action
  • data-align
  • data-bl-appearance
  • data-bl-lift
  • data-bl-no-swipe
  • data-closing
  • data-dir
  • data-easing
  • data-empty
  • data-fit
  • data-label
  • data-lifted
  • data-loaded
  • data-magnified
  • data-measuring
  • data-overflowing
  • data-ready
  • data-side
  • data-stacked
  • data-zoomed

Tokens

  • --bl-color-canvas
  • --bl-color-control-border
  • --bl-color-copper
  • --bl-color-danger
  • --bl-color-ink-1
  • --bl-color-ink-2
  • --bl-color-ink-3
  • --bl-color-on-danger
  • --bl-color-on-trace
  • --bl-color-phosphor
  • --bl-color-raised
  • --bl-color-separator
  • --bl-color-surface
  • --bl-color-trace
  • --bl-duration-base
  • --bl-duration-fast
  • --bl-duration-page-enter
  • --bl-duration-page-leave
  • --bl-duration-rise
  • --bl-duration-rise-step
  • --bl-ease-out
  • --bl-font-display
  • --bl-font-mono
  • --bl-font-sans
  • --bl-layout-column
  • --bl-layout-gutter
  • --bl-layout-gutter-narrow
  • --bl-layout-prose
  • --bl-leading-body
  • --bl-leading-display
  • --bl-leading-display-md
  • --bl-leading-heading
  • --bl-leading-lede
  • --bl-radius-card
  • --bl-radius-chip
  • --bl-radius-pill
  • --bl-shadow-float
  • --bl-shadow-glow
  • --bl-shadow-thumb
  • --bl-shadow-well
  • --bl-space-1
  • --bl-space-2
  • --bl-space-3
  • --bl-space-4
  • --bl-space-5
  • --bl-space-6
  • --bl-space-7
  • --bl-space-8
  • --bl-space-9
  • --bl-text-annotation
  • --bl-text-body
  • --bl-text-display-lg
  • --bl-text-display-md
  • --bl-text-display-xl
  • --bl-text-heading
  • --bl-text-micro
  • --bl-text-small
  • --bl-tracking-annotation
  • --bl-tracking-display
  • --bl-tracking-heading
  • --bl-tracking-nav
  • --bl-tracking-silkscreen

CSS hooks (custom properties a consumer may set)

  • --bl-anchored-gap
  • --bl-chevron-mask
  • --bl-dialog-width
  • --bl-lightbox-scrim
  • --bl-log-height
  • --bl-media-size
  • --bl-meter-value
  • --bl-popover-width
  • --bl-range-value-width
  • --bl-rise-delay
  • --bl-scroll-offset-bottom
  • --bl-scroll-offset-top
  • --bl-table-col-min
  • --bl-table-min-col
  • --bl-telemetry-columns
  • --bl-tooltip-width

Tailwind theme variables

  • --color-canvas
  • --color-control-border
  • --color-copper
  • --color-danger
  • --color-ink-1
  • --color-ink-2
  • --color-ink-3
  • --color-on-danger
  • --color-on-trace
  • --color-phosphor
  • --color-raised
  • --color-separator
  • --color-surface
  • --color-trace
  • --container-column
  • --container-prose
  • --ease-bl
  • --font-display
  • --font-mono
  • --font-sans
  • --radius-card
  • --radius-chip
  • --radius-pill
  • --shadow-float
  • --shadow-thumb
  • --shadow-well
  • --text-annotation
  • --text-body
  • --text-body--line-height
  • --text-display-lg
  • --text-display-lg--line-height
  • --text-display-md
  • --text-display-md--line-height
  • --text-display-xl
  • --text-display-xl--line-height
  • --text-heading
  • --text-heading--line-height
  • --text-micro
  • --text-small
  • --tracking-annotation
  • --tracking-display
  • --tracking-heading
  • --tracking-nav
  • --tracking-silkscreen