Compositions
SettingsCard
Vercel-style settings card with a per-card save action. Each card
represents a cohesive group of related settings; pair rows inside it
with SettingsRow for the standard label/description/control layout.
Usage
Best practices
Fill it with
SettingsRowchildren for the standard label/description/control layout; useSettingsCardfor grouped form settings, notCard, when you want the built-in per-card save footer.The footer only renders when
onSaveis passed, and the Save button is gated ondirty(and disabled whileloading) - wire form dirty state through, or the button stays disabled.Give each card one cohesive group of settings with its own save; don't nest multiple
SettingsCards or share one across unrelated sections.
Props
SettingsCard
SettingsRow
Also exports
- const
settingsCardAnatomy - interface
SettingsCardProps - interface
SettingsRowProps