Skip to content

Speed Dial ​

Loading...

<flint-speed-dial-action> ​

A single action item inside a flint-speed-dial.

  • Tag: <flint-speed-dial-action>
  • Class: FlintSpeedDialAction

Import ​

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

Usage ​

html
<flint-speed-dial-action></flint-speed-dial-action>

Properties ​

PropertyAttributeTypeDefaultDescription
namenamestring''Programmatic identifier for this action, included in the click event detail.
tooltipTitletooltip-titlestring''Tooltip text shown alongside the action and used as aria-label.
tooltipOpentooltip-openbooleanfalseForces the tooltip to be visible regardless of hover state.
tooltipPlacementtooltip-placement'left' | 'right' | 'top' | 'bottom''left'Tooltip placement relative to the action button.
disableddisabledbooleanfalseIf true, the action button is disabled.

Events ​

EventDetailDescription
flint-speed-dial-action-click—Fired when the action button is clicked.

Slots ​

NameDescription
(default)Icon content for the action button.

CSS Parts ​

NameDescription
buttonThe button element.
tooltipThe tooltip element.

CSS Custom Properties ​

PropertyDefault
--flint-speed-dial-action-size—
--flint-speed-dial-action-gap—
--flint-surface-1—
--flint-text-color—
--flint-surface-2—
--flint-primary-color—
--flint-tooltip-bg—
--flint-tooltip-text-color—
--flint-font-family—
--flint-text-color-on-primary—

<flint-speed-dial> ​

Speed Dial — a FAB that reveals 3-6 related actions when pressed.

  • Tag: <flint-speed-dial>
  • Class: FlintSpeedDial

Import ​

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

Usage ​

html
<flint-speed-dial></flint-speed-dial>

Properties ​

PropertyAttributeTypeDefaultDescription
openopenbooleanfalseWhether the speed dial is open (controlled).
defaultOpendefault-openbooleanfalseInitial open state for uncontrolled usage. Sets open once on first render.
directiondirection'up' | 'down' | 'left' | 'right''up'Direction in which actions expand from the FAB (default 'up').
hiddenhiddenbooleanfalseHides the entire speed dial component.
disableddisabledbooleanfalseDisables the FAB and prevents opening.
persistentTooltipspersistent-tooltipsbooleanfalseWhen true, tooltips on all actions are always visible (good for touch/a11y).
closeIconclose-iconstring''Custom char/text rendered as the x close icon on the FAB. Falls back to built-in SVG.
ariaLabelaria-labelstring'Speed dial'ARIA label for the main FAB button.
isTouchis-touchbooleanfalseTrue on touch-only devices (auto-detected unless explicitly set).

Events ​

EventDetailDescription
flint-speed-dial-open&#123; open: true &#125;Fired when the dial opens. detail: &#123; open: true &#125;
flint-speed-dial-close&#123; open: false &#125;Fired when the dial closes. detail: &#123; open: false &#125;

Slots ​

NameDescription
(default)flint-speed-dial-action elements.
iconIcon shown on the FAB when closed (default: + SVG).
open-iconIcon shown on the FAB when open (default: x SVG).

CSS Parts ​

NameDescription
actionsThe actions container.
buttonThe FAB button element.

CSS Custom Properties ​

PropertyDefault
--flint-speed-dial-action-size—
--flint-speed-dial-action-gap—
--flint-speed-dial-size—
--flint-speed-dial-bg—
--flint-speed-dial-color—
--flint-speed-dial-bg-hovervar(--flint-primary-color-hover