Unkey
Components

SettingCard

A card component for settings options.

SettingCard

The SettingCard component provides a consistent layout for settings sections in your application. It includes a title, description, and content area with optional styling options.

Basic Usage

The basic SettingCard includes a title, description, and content area.

Example Card Border Both
Passing border='both' will show a top and bottom border. Content for right side is passed in as a child.

Settings Cards With Shared Edge

Two SettingCard components sharing a common edge. Useful when settings might be related or make sense visualy together.

Example Top Card Border
Passing border='top' will only show a top border.
Example Card Bottom Border
Passing border='bottom' will only show a bottom border.

Settings Cards With seperating border

Same as above with a border set.

Example Top Card Border
Passing border='top' will only show a top border.
Example Card Bottom Border
Passing border='bottom' will only show a bottom border.

Square Corners

Single SettingCard with no border prop set.

Square corncers Example
Not passing in border prop will default to rounded corners.

Features

  • Consistent layout for settings sections
  • Built-in title and description handling
  • Optional border and divider styling
  • Configurable content width
  • Responsive design
  • Accessible by default

Props

PropTypeDefaultDescription
titlestringrequiredThe title of the settings section
descriptionstringrequiredDescription text for the settings section
childrenReact.ReactNoderequiredCard content
classNamestringundefinedAdditional CSS classes
borderbooleanundefinedWhether to show a border around the card
contentWidth"default" | "full""default"Width of the content area

On this page