# Mark Toggle

Mark Toggle is a free, MIT-licensed standalone component from AI Canvas (https://aicanvas.me): it belongs to no design system and works in any React + Tailwind app. Index of every component and install setup: https://aicanvas.me/llms.txt

An iOS-style pill toggle in warm earth and sand tones: the thumb carries a small icon that morphs from X to checkmark as it slides across.

- Category: Buttons & Toggles
- Built with: Motion, Tailwind CSS
- License: MIT
- Page: https://aicanvas.me/components/mark-toggle

## Install

```bash
npx shadcn@latest add @aicanvas/mark-toggle
```

Needs a free AI Canvas account. Signed out, the command exits 0 but writes a placeholder (an `AccountRequired` notice); check for it before reporting success. Token setup: the Install section of https://aicanvas.me/llms.txt.

AI agents can also get its install command from the read-only AI Canvas MCP server (`npx -y @aicanvas/mcp`) and run it. Setup: https://aicanvas.me/mcp

Peer dependencies:

```bash
npm install framer-motion
```

## Use it

It installs to `components/aicanvas/mark-toggle.tsx` (under `src/` if your project has one). With the usual `@/` alias:

```tsx
import MarkToggle from '@/components/aicanvas/mark-toggle'

<MarkToggle />
```

It takes no props.

## About

Mark Toggle is a warm-toned variation on the iOS pill switch with one extra detail: the thumb carries a tiny mark that morphs from an X into a checkmark as it slides across. The track lives in earthy sand colors, the icon swap is animated with Motion, and the spring settles cleanly without bounce artifacts. Because the moving glyph confirms the new state, it is a more reassuring choice for settings rows, onboarding choices, and consent-style forms where users want to be certain a switch flipped.

Use cases: Settings, Forms, Onboarding.

## Source

Install with the command above to get the source.

## Remix prompt

Only when the user wants Mark Toggle rebuilt from scratch instead of installed: its remix prompt is in the Remix panel at https://aicanvas.me/components/mark-toggle.

## Related

- [Pill Toggle](https://aicanvas.me/components/pill-toggle.md): A minimal iOS-style slider toggle: thumb glides between off (grey) and on (green) with a snappy spring. Fully responsive.
- [Taga Toggle](https://aicanvas.me/components/taga-toggle.md): A playful pill toggle with an expressive face on the thumb: dead (×× eyes, flat mouth) when off, happy (arc eyes, big smile) when on. Track warms from grey to yellow.
- [Blind Pull Toggle](https://aicanvas.me/components/blind-pull-toggle.md): A dark/light mode toggle styled as a window-blind pull cord. Click to yank the cord and watch the icon swap through a venetian-blind slat animation.
- [Emoji Burst](https://aicanvas.me/components/emoji-burst.md): A button that explodes emojis outward in all directions. Five emoji sets cycle on each click.
- [Glass Toggle](https://aicanvas.me/components/glass-toggle.md): On/off toggles with glass housing and liquid-feel spring animation. Track color transitions smoothly.
