Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

530 B
Raw Blame
import { Meta, Story } from "@storybook/addon-docs/blocks";

import { Label } from "@/components/ui/label";
import { Switch } from "@/components/ui/switch";

<Meta title="Switch" component={Switch} />

# Switch

<div className="flex items-center align-middle space-x-2">
  <Switch id="airplane-mode" />

  <Label htmlFor="airplane-mode">Airplane Mode</Label>
</div>

<div className="flex items-center align-middle space-x-2">
  <Switch id="airplane-mode" size="sm" />

  <Label htmlFor="airplane-mode">Small Switch</Label>
</div>