Skip to content

Tactile Button

Pro

A button with a flat face on a darker ledge, in any color. A press drops the face onto the ledge. One CSS variable sets the color.

  • React 19
  • Tailwind CSS 4

Added Nov 9, 2026 · Pro license

Playground

Loading the preview

Props

Needs your Pro API key in GELATIN_UI_PRO_TOKEN. Set it up

Pro itemAPI key required

Tactile Button needs a Pro API key

Try the live preview for free. With Pro, the add command above puts the source in your project.

Files it adds
7
More Pro items, one API key
+327
Your coding agent runs it
1 cmd

$79$129once, for life

Already have Pro? Sign in to set up your API key.

Set the color with --tactile on the button or a parent, and put a price or a count in TactileButtonChip.

get-pro-button.tsx

TactileButton

<button>
PropTypeDefaultDescription
classNamestring—
busyboolean—The button waits for the app (busy words): a spinner, aria-busy, and no clicks. Focus stays on the button. The style hook stays data-loading.
spinnerPlacement"center""start"—center (default): the spinner covers the label. start: it takes the leading icon slot. The icon sizes always use center, because their one icon is the label.
glass"clear""dark""light"—
size"default""lg""xl""lg"
variant"outline""solid""solid"
From Base UIButtonBase UI docs
focusableWhenDisabledbooleanfalseWhether the button should be focusable when disabled.
render—Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render.
style—Style applied to the element, or a function that returns a style object based on the component's state.
...props<button> attributes—Every other attribute goes to the <button>, with a ref.

TactileButtonChip

<span>
PropTypeDefaultDescription
...props<span> attributes—Every other attribute goes to the <span>, with a ref.
  • Set --tactile and --tactile-foreground on the button or on a parent to set the color.
  • Use size="xl" for the main action of a screen, and TactileButtonChip for a price or a count.
  • Leave 4px of room under it: the ledge hangs below the button box and takes no layout room.
  • For the usual actions of a form or a toolbar, use a Button.
  • For an action that needs a long press to confirm, use a Hold Button.
EnterPresses the button.
SpacePresses the button.
Press
press · 100ms · the face moves down by the ledge depth (3px or 4px), the ledge stays still

Built with

Installs with Tactile Button

Components
Button
  1. AddedTactile Button, with Button.
Open the release