ApiKeyInput
A Rotate button with a confirm dialog. It is not form-bound: on confirm it sets the field to null through the data provider, or runs onRotate when given.
Installation
pnpm dlx shadcn@latest add @chelone/api-key-inputA Rotate button with a confirm dialog. It is not form-bound: on confirm it sets the field to null through the data provider, or runs onRotate when given.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| disabled | boolean | — | Disable the button. |
| onRotate | (record: LooseRecord) => void | Promise<void> | — | Async side-effect on rotate. When provided, replaces the default update mutation. |
| resource | string | — | Override resource. |
| source | string | — | Record field holding the API key. |