RobloxUIRobloxUI
BrowseDocsPricingSubmit
/
/
RobloxUIRobloxUI — Roblox UI Components Marketplace
DocsSitemapTermsPrivacyCookiesSettingsPerformance
Toggle Button — RobloxUI
  1. Home
  2. /
  3. Buttons
  4. /
  5. Toggle Button
Booting Luau VM…

Install with the CLI

Add Toggle Button to your Roblox project in one command. Requires Node 18+ and a Roblox project — run robloxui init first if you don't have one yet. See the docs.

bashnpx robloxui add toggle-button

First time? Start with the documentation.

Import

tsx
import { Toggle Button } from "./src/client/ui/components/toggle-button";

Usage

tsx
<ToggleButton label="Enable Notifications" defaultOn={false} onToggle={(on) => print(on)} />

Toggle Button

TSX + LuauFree

A button that toggles between two states (on/off). Includes a visual indicator and supports controlled and uncontrolled modes.

by RobloxUI Team

View Source

Details

AuthorRobloxUI Team
FrameworkRoblox-TS + React-Luau
CategoryButtons
Dependencies@rbxts/react
Theme Tokenscolors.success, colors.bgTertiary, colors.textPrimary, spacing.xs, spacing.sm
Last Updated
July 31, 2026