a
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
---
|
||||
title: Toggle
|
||||
description: This crazy toggling button keeps people toggling...😃
|
||||
lastUpdated: 09 Sep, 2025
|
||||
links:
|
||||
source: https://github.com/logging-studio/RetroUI/blob/main/components/retroui/Toggle.tsx
|
||||
---
|
||||
|
||||
<ComponentShowcase name="toggle-style-default" />
|
||||
<br />
|
||||
<br />
|
||||
|
||||
<ComponentInstall>
|
||||
<ComponentInstall.Cli npmCommand="npx shadcn@latest add @retroui/toggle" />
|
||||
<ComponentInstall.Manual>
|
||||
#### 1. Install dependencies:
|
||||
|
||||
```sh
|
||||
npm install @radix-ui/react-toggle
|
||||
```
|
||||
|
||||
<br />
|
||||
|
||||
#### 2. Copy the code 👇 into your project:
|
||||
|
||||
<ComponentSource name="toggle" />
|
||||
</ComponentInstall.Manual>
|
||||
|
||||
</ComponentInstall>
|
||||
|
||||
<br />
|
||||
<br />
|
||||
|
||||
## Examples
|
||||
|
||||
### Default
|
||||
|
||||
<ComponentShowcase name="toggle-style-default" />
|
||||
<br />
|
||||
<br />
|
||||
|
||||
### Outlined
|
||||
|
||||
<ComponentShowcase name="toggle-style-outlined" />
|
||||
<br />
|
||||
<br />
|
||||
|
||||
### Solid
|
||||
|
||||
<ComponentShowcase name="toggle-style-solid" />
|
||||
<br />
|
||||
<br />
|
||||
|
||||
### Outline Muted
|
||||
|
||||
<ComponentShowcase name="toggle-style-outline-muted" />
|
||||
Reference in New Issue
Block a user