PressButton

Momentary press feedback synchronized across pointer and keyboard input with reduced-motion handling.

InterfaceSource ready3 props documentedLive preview
Add with shadcnnpx shadcn@latest add https://www.uigrids.com/r/press-button.json
Interactive preview
Interface

Install with the CLI

# adds PressButton to components/ui with the shadcn CLI
npx shadcn@latest add https://www.uigrids.com/r/press-button.json

Or install the package

// npm install @uigrids/react-ui
import { PressButton } from '@uigrids/react-ui'

export default function App() {
  return <PressButton />
}

Props

PropTypeDefaultDescription
childrenstring'Press to confirm'Content rendered inside the component.
onClickunknown-Configures the on click option.
classNamestring''Additional CSS classes for the outer element.