Component category · 9 components

Shadcn button and toggle components

TentUI's 9 shadcn button and toggle components are free, source-available, copy-paste React components built with shadcn/ui and Tailwind CSS. Use them for async form submits, destructive confirmations, one-click clipboard actions, theme switches, and tactile triggers without locking into a runtime package. Install one with npx shadcn@latest add @tentui/animated-arrow after adding the TentUI registry, then customize the source in your project.

Buttons and toggles components

Related guides

All guides

FAQ

How do I install shadcn button and toggle components?

Add "@tentui": "https://tentui.com/r/{name}.json" to the registries object in components.json, then run npx shadcn@latest add @tentui/animated-arrow, swapping in any component slug from this category. The CLI copies the component source into your project and installs the lucide-react package.

Which shadcn button and toggle components does TentUI include?

TentUI includes 9 shadcn button and toggle components. Animated Arrow: Slide an arrow across its container when its parent is hovered. Copy Button: Copy text to the clipboard with visual, sound, and haptic feedback. Glass Toggle: An on/off switch with a thumb of thick frosted glass. Flip it and the thumb springs across, a pixel moon scatters and reassembles as a pixel sun, and a rim light runs round the glass from cool lilac to warm amber. Hold to Confirm: Guard destructive actions behind a press-and-hold fill with rising sound, haptic ticks, and a checkmark. Peeping Button: Add a shy, cursor-tracking surprise behind a familiar button face. Pull Cord: A ball-chain pull switch for a light. Drag the handle down and the chain feeds out bead by bead with a tick each, then flips with a click on release and swings back to rest. Stateful Button: Communicate async loading, success, and error states without leaving the button. Tailwind CSS Buttons: Browse and copy a responsive gallery of polished Tailwind CSS button styles. Theme Toggle: Switch between light and dark themes with animated, sound, and haptic feedback.

Do TentUI button and toggle components support async loading states and reduced motion?

Yes. Components like Stateful Button, Copy Button, and Hold to Confirm handle async promises, success and error feedback, keyboard activation, and prefers-reduced-motion fallbacks directly in the copied TypeScript source.

Do these button and toggle components work with Next.js and Tailwind CSS?

Yes. Each component is written in TypeScript for React and styled with Tailwind CSS tokens, so it works out of the box in Next.js, Vite, or any React app configured with shadcn/ui.

Are TentUI button and toggle components free to use?

Yes. TentUI components are free and source-available. The shadcn CLI copies the source into your codebase, and you can use them in unlimited personal and client projects under the TentUI License.