Founding price: $35, then $99 after 23:59 UTC on 4 November, then $99
Get ProA security setting switch that turns on at once but asks before it turns off, with the question anchored to the switch.
Derived from this item’s props table, because it declares no controls of its own. This item has no standalone playground, so changes update the code, the share link and the AI prompt.
Use this when a switch controls something that protects the person or the workspace (two-factor, audit logs, spam filters) and turning it off should be a conscious choice.
Do not use it when the setting is a harmless preference. Extra confirmation on every switch trains people to click through it.
This item is part of tealmac UI Pro
The source for this item installs with a Pro licence key. Log in with your key to see the install command, or read the Pro setup page.
| Prop | Type | Required | Description |
|---|---|---|---|
label | string | required | - |
description | string | optional | Shown under the label. |
checked | boolean | required | - |
onCheckedChange | (checked: boolean) => void | Promise<void> | required | - |
offQuestion | string | required | Question asked before turning off, for example "Turn off two-factor sign-in?". |
offConsequence | string | optional | What happens when it is off. |
The pattern ships with a Testing Library test (popconfirm-setting-switch.test.tsx) that covers turning on without a question, asking before turning off, confirming and answering No.