Switch

On/off toggle, e.g. the channels an agent answers on.

Installation

Once per app, set up Aedis UI. The CLI verifies the signed release before writing anything and pins every dependency:

npx @aedis/cli@0.1.0 init

Import the theme once in your global CSS, after Tailwind:

app/globals.css
@import "tailwindcss";@import "./styles/aedis-theme.css";

Then add the component:

npx @aedis/cli@0.1.0 add switch# pnpm dlx @aedis/cli@0.1.0 add switch · yarn dlx @aedis/cli@0.1.0 add switch · bunx @aedis/cli@0.1.0 add switch

Props

PropTypeDefaultDescription
...props@base-ui/react Switch props—Every prop of the underlying Base UI part, including render for composition.

Security

  • Use disabled (not hidden) for settings that cannot be turned off, so the reason stays visible.