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 '@getufy/flint-ui'; // auto-registers all
// or
import { FlintButtonGroup } from '@getufy/flint-ui';

Usage ​

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

Properties ​

PropertyAttributeTypeDefaultDescription
orientationorientationOrientation'horizontal'Layout direction of the group.
sizesizeButtonSize | ''''Size propagated to child flint-button elements.
appearanceappearanceButtonAppearance | ''''Appearance propagated to child flint-button elements.
colorcolorButtonColor | ''''Color propagated to child flint-button elements.

CSS Parts ​

NameDescription
baseThe component's base wrapper element.

CSS Custom Properties ​

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

<flint-button> ​

Button: a clickable element used for actions and navigation.

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

Import ​

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

Usage ​

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

Properties ​

PropertyAttributeTypeDefaultDescription
appearanceappearanceButtonAppearance'filled'Visual appearance of the button (structural style).
variantvariantButtonAppearance—Visual style variant. Alias for appearance.
colorcolorButtonColor'primary'Semantic color of the button.
sizesizeButtonSize'md'Size of the button.
disableddisabledbooleanfalseDisables the button and prevents interaction.
fullWidthfull-widthbooleanfalseWhether the button stretches to fill its container width.
typetypeButtonType'button'Button type attribute. When submit or reset, a hidden native
labellabelstring''Accessible label for screen readers. Essential for icon-only buttons.
loadingloadingbooleanfalseShows a loading spinner and disables interaction.
hrefhrefstring''When set, renders an &lt;a&gt; tag instead of a &lt;button&gt;.
targettargetstring''Optional target attribute when href is set.
shapeshapeButtonShape'default'Shape variant of the button.
caretcaretbooleanfalseRenders a dropdown caret (chevron-down) icon in the suffix area.

CSS Parts ​

NameDescription
baseThe button's base wrapper element.
prefixThe container wrapping the prefix slot.
labelThe container wrapping the default slot (label text).
suffixThe container wrapping the suffix slot.
caretThe caret icon container.
spinnerThe loading spinner element.

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 '@getufy/flint-ui'; // auto-registers all
// or
import { FlintToggleButtonGroup } from '@getufy/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.
defaultValuedefault-valuestring | string[]''Initial selected value(s) for uncontrolled usage.
exclusiveexclusivebooleantrueWhether only one button can be selected at a time.

Events ​

EventDetailDescription
flint-toggle-button-group-change&#123; value: string | string[] &#125;Fired when the group's selected value(s) change. detail: &#123; value: string | string[] &#125;

<flint-toggle-button> ​

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

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

Import ​

ts
import '@getufy/flint-ui'; // auto-registers all
// or
import { FlintToggleButton } from '@getufy/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.
sizesizeSize'md'Size variant of the toggle button.

Events ​

EventDetailDescription
flint-toggle-button-change&#123; value: string, selected: boolean &#125;Fired when the button's selected state changes. detail: &#123; value: string, selected: boolean &#125;

CSS Parts ​

NameDescription
baseThe inner button element.

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