Skip to main content
This component is returned by Settings.useForm().
Any buttons placed inside workspace settings will be rendered appropriately within the form layout.

Example

src/app/settings/page.tsx

Props

string
required
The title of the button section.
string
An optional description that provides additional context about what the button does.
string
required
The text of the button.
() => void
required
A function that will be called if the user clicks the button.
'primary' | 'secondary' | 'secondary-destructive' | 'ghost' | 'destructive'
The style of the button.Defaults to "secondary".