Skip to content
Filters
Kind
Integration level
Dependencies

No extra packages or services: Svelte and Tailwind CSS prerequisites still apply.

Runtime
Capabilities

Category: Buttons & links

Components

13 components

  • Action button

    A labelled action button in primary, secondary, ghost and destructive priorities and three sizes, with optional icons and a pending state that holds its width and focus. Renders a <button>, or an <a> when given href.

    • Control
    • No additional dependencies
  • Button group

    A labelled group of related buttons, spaced (wrapping, placed by align) or attached as one strip with single hairline seams and outer-only corners, in a row or a column. Your buttons go in as children.

    • Control
    • No additional dependencies
  • Icon button

    A square or round icon-only button in primary, secondary and ghost priorities and three sizes, with a required accessible name that doubles as a hover and focus hint, and an optional pressed state for toggles.

    • Control
    • No additional dependencies
  • Load more button

    A load-more control for the foot of a list: the closing rule fills as a progress track, with a count, one button, and pending, retry and end-of-list states. You supply the paging.

    • Control
    • Needs a service
  • Text link

    A native text link for prose, footers, navigation and card actions: a drawn underline that thickens on hover, a focus ring on every wrapped line, current-page and visited states, arrows, external links and stretched rows.

    • Control
    • No additional dependencies
  • Split button

    A default action joined to a chevron that opens a menu of related alternatives, such as Save beside Save as draft and Save and share. Two tab stops in one group; the menu stays inside the viewport.

    • Control
    • bits-ui ^2.19.3
  • Copy button

    Copies a supplied string and confirms it inline, as a standalone or icon-only button or joined to a read-only mono field showing the value, with a check that keeps the button's width and a manual-copy note on failure.

    • Control
    • No additional dependencies
  • Download link

    A native download link that shows the file's name, format and size before the click, as a list row, a card with a description or a filled button. A document tile carries the format; rows divide themselves inside a list.

    • Control
    • No additional dependencies
  • Print button

    A print action for pages the site has already prepared for paper. Awaits an optional beforePrint, opens the browser's print dialog, runs afterPrint on afterprint, and never appears in print output.

    • Control
    • No additional dependencies
  • Share button

    A share button that opens the device's share sheet when it can, and otherwise a small panel with the link, a Copy button that confirms in place and optional plain share links you build.

    • Control
    • bits-ui ^2.19.3
  • Toggle button

    A button that holds an on or off state with aria-pressed and a label that never changes. Off is a quiet outlined surface; on fills with the accent and its leading mark fills and ticks, so the state reads in shape as well as colour.

    • Control
    • No additional dependencies
  • Toggle group

    A labelled set of toggle buttons with single or multiple selection: one hairline track with accent plates for the pressed items, or spaced buttons that wrap. Arrow-key roving focus, icon-only hints, no dependencies.

    • Control
    • No additional dependencies
  • Floating action

    One action held in a bottom corner of the viewport, such as Talk to sales or Back to top. It can wait for a scroll threshold, closes to its icon on phones, and respects safe-area insets.

    • Control
    • No additional dependencies