Skip to content

Button ​

Variants

Loading...

Sizes

Loading...

States

Loading...

Button Group

Loading...

Toggle Buttons

Loading...

<flint-button-group> ​

  • Tag: <flint-button-group>
  • Class: FlintButtonGroup

Import ​

ts
import 'flint-ui'; // auto-registers all
// or
import { FlintButtonGroup } from 'flint-ui';

Usage ​

html
<flint-button-group></flint-button-group>

Slots ​

NameDescription
(default)Default slot for content

CSS Custom Properties ​

PropertyDefault
--flint-border-radius-md6px
--flint-font-family—
--flint-shadow-sm—
--flint-primary-color—
--flint-text-color-on-primary—
--flint-primary-color-hover—
--flint-primary-color-active—
--flint-surface-1—
--flint-text-color—
--flint-input-border-color—
--flint-hover-color—
--flint-active-color—
--flint-destructive-color—
--flint-destructive-color-hover—
--flint-destructive-color-active—

<flint-button> ​

  • Tag: <flint-button>
  • Class: FlintButton

Import ​

ts
import 'flint-ui'; // auto-registers all
// or
import { FlintButton } from 'flint-ui';

Usage ​

html
<flint-button></flint-button>

Properties ​

PropertyAttributeTypeDefaultDescription
variantvariant'primary' | 'secondary' | 'destructive''primary'Visual style variant of the button.
sizesize'small' | 'medium' | 'large''medium'Size of the button.
disableddisabledbooleanfalseDisables the button and prevents interaction.
fullWidthfull-widthbooleanfalseWhether the button stretches to fill its container width.

Slots ​

NameDescription
(default)Default slot for content

CSS Custom Properties ​

PropertyDefault
--flint-button-border-radiusvar(--flint-border-radius-md

<flint-toggle-button-group> ​

Toggle Button Group: manages exclusive or multi-select toggle buttons.

  • Tag: <flint-toggle-button-group>
  • Class: FlintToggleButtonGroup

Import ​

ts
import 'flint-ui'; // auto-registers all
// or
import { FlintToggleButtonGroup } from 'flint-ui';

Usage ​

html
<flint-toggle-button-group></flint-toggle-button-group>

Properties ​

PropertyAttributeTypeDefaultDescription
valuevaluestring | string[]''Currently selected value(s). A string when exclusive, an array otherwise.
exclusiveexclusivebooleantrueWhether only one button can be selected at a time.

Events ​

EventDetailDescription
flint-toggle-button-group-change—Fired when the group's selected value(s) change.

Slots ​

NameDescription
(default)Default slot for content

<flint-toggle-button> ​

Toggle Button: a button that can be toggled on/off.

  • Tag: <flint-toggle-button>
  • Class: FlintToggleButton

Import ​

ts
import 'flint-ui'; // auto-registers all
// or
import { FlintToggleButton } from 'flint-ui';

Usage ​

html
<flint-toggle-button></flint-toggle-button>

Properties ​

PropertyAttributeTypeDefaultDescription
selectedselectedbooleanfalseWhether the button is currently selected (pressed).
disableddisabledbooleanfalseWhether the button is disabled.
valuevaluestring''Value associated with this toggle button.
sizesize'sm' | 'md' | 'lg''md'Size variant of the toggle button.

Events ​

EventDetailDescription
flint-toggle-button-change—Fired when the button's selected state changes.

Slots ​

NameDescription
(default)Default slot for content

CSS Custom Properties ​

PropertyDefault
--flint-toggle-button-font-size14px
--flint-toggle-button-padding8px 16px
--flint-toggle-button-gap8px
--flint-toggle-button-border-radiusvar(--flint-border-radius-md
--flint-toggle-button-selected-bgvar(--flint-active-color
--flint-toggle-button-selected-colorvar(--flint-primary-color
--flint-toggle-button-selected-border-colorvar(--flint-primary-color