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

Example

workspace-settings.tsx

Props

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