# Toggle: Outline

> `variant="outline"` adds a border and a surface, for toggles that sit on their own.

Example: https://hextaui.com/docs/toggle/examples/outline
Component docs: https://hextaui.com/docs/toggle.md

## Add this example

```bash
npx shadcn@latest add https://hextaui.com/r/toggle-outline.json
```

This adds `components/examples/toggle/outline.tsx` with the Toggle component and the HextaUI theme tokens.

## Source

```tsx title="components/examples/toggle/outline.tsx"
import { IconBookmark } from "@tabler/icons-react"

import { Toggle } from "@/components/ui/toggle"

export function ToggleOutline() {
  return (
    <div className="flex items-center gap-2">
      <Toggle variant="outline" aria-label="Bookmark">
        <IconBookmark />
      </Toggle>
      <Toggle variant="outline">
        <IconBookmark />
        Bookmark
      </Toggle>
    </div>
  )
}
```

## Props in this example

### Toggle

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `variant` | `"default" \| "outline"` | `"default"` |  |

## More Toggle examples

- [With text](https://hextaui.com/docs/toggle/examples/text.md)
- [Filled when on](https://hextaui.com/docs/toggle/examples/filled-icon.md)
- [Sizes](https://hextaui.com/docs/toggle/examples/sizes.md)
- [Pill](https://hextaui.com/docs/toggle/examples/pill.md)
- [Disabled](https://hextaui.com/docs/toggle/examples/disabled.md)
- [Controlled](https://hextaui.com/docs/toggle/examples/controlled.md)
- [Right to left](https://hextaui.com/docs/toggle/examples/rtl.md)
