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-input

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.

Props

PropTypeDefaultDescription
disabledboolean—Disable the button.
onRotate(record: LooseRecord) => void | Promise<void>—Async side-effect on rotate. When provided, replaces the default update mutation.
resourcestring—Override resource.
sourcestring—Record field holding the API key.