Skip to content
nexubDesign System
v2.4.0

Components · Interactive

Toggle

StableSince v0.0.1

Pressable toggle button built on Radix UI Toggle.

import { Toggle } from '@nexub/react';

Examples

Default

Outline variants

Props

Props
PropTypeDefaultDescription
pressedboolean—The controlled pressed state.
defaultPressedboolean—The initial pressed state when uncontrolled.
variant'default' | 'outline'—Visual style of the toggle button.
size'sm' | 'md' | 'lg'—Size of the toggle button.
disabledboolean—Disables the toggle when true.

On iOS & Android