Team settings
Edit the team profile and notification preferences, then save or reset the changes.
Installation
Complete one-time setup, then install:
pnpm dlx shadcn@4.18.0 add @siteplane/team-settingsFiles
The command installs src/components/team-settings.tsx and its component dependencies. Render its default export in your application. The registry item and the Code panel contain the same source.
Try the workflow
Change the team name, description, visibility, and notification settings. Save changes keeps the values as the new baseline; Reset changes restores it. An empty or whitespace-only team name shows “Enter a team name.”
Composition and adaptation
Form, Field, Input, Textarea, Select, Switch and SettingsList compose the editable settings screen.
| Area | Details |
|---|---|
| Data | settings contains the editable values; saved is the reset baseline. |
| Callbacks | Field validate checks the team name; Form onSubmit saves, and onReset restores saved and clears the validation message. Input, Select and Switch callbacks update settings. |
| Included states | Editable values, validation and reset. |
| Connect to your product | Replace the local save with your service, add pending and server-error states, and enforce authorization on the server. Refreshing the page resets the local data. |