HQReact UI
DocsThemes
  • Getting Started
  • Introduction
  • Installation
  • Client Side Routing
  • MCP Server
  • LLMs
  • Framework Guides
  • Nextjs
  • Laravel
  • Vite
  • Tanstack Start
  • Components
  • Buttons
  • Button
  • File Trigger
  • Toggle
  • Charts
  • Chart
  • Collections
  • Accordion
  • Bubble
  • Collapsible
  • Context Menu
  • Dropdown Menu
  • Grid List
  • Item
  • List Box
  • Message
  • Table
  • Tag Group
  • Tree
  • Colors
  • Color
  • Controls
  • Command
  • Kbd
  • Slider
  • Switch
  • Toolbar
  • Date And Time
  • Calendar
  • Range Calendar
  • Date Field
  • Date Picker
  • Date Range Picker
  • Time Field
  • Drag And Drop
  • Drop Zone
  • Forms
  • Field
  • Input
  • Combobox
  • Input Group
  • Checkbox
  • Radio
  • Select
  • Text Field
  • Number Field
  • Search Field
  • Input OTP
  • Layouts
  • Container
  • Navbar
  • Sidebar
  • Media
  • Avatar
  • Carousel
  • Navigation
  • Link
  • Breadcrumbs
  • Tabs
  • Pagination
  • Overlays
  • Dialog
  • Alert Dialog
  • Sheet
  • Popover
  • Tooltip
  • Statuses
  • Alert
  • Badge
  • Empty
  • Meter
  • Progress
  • Skeleton
  • Toastalpha
  • Surfaces
  • Card
  • Separator

On this page

Toggle

ToggleButton
toggle-basic

Installation

CLI
Manual

npx shadcn add https://hq-ui.vercel.app/r/toggle

Examples

Toggle

Variants

Use the variant prop to change the variant of the toggle.

toggle-variants

Sizes

Use the size prop to change the size of the toggle.

toggle-sizes

Disabled

toggle-disabled

Toggle Group

Size

Use the size prop to change the size of the toggle group.

toggle-group-sizes

Spacing

Use spacing to add spacing between toggle group items.

toggle-group-spacing

Vertical

Use orientation="vertical" for vertical toggle groups.

toggle-group-vertical

Disabled

toggle-group-disabled

Custom

A custom toggle group example.

toggle-group-font-weight-selector
Use font-normal to set the font weight.
File Trigger
Chart

On this page

  • Installation
  • Examples
  • Toggle
  • Variants
  • Sizes
  • Disabled
  • Toggle Group
  • Size
  • Spacing
  • Vertical
  • Disabled
  • Custom