Skip to content

Section

Terminal window
npx stylesheet-ui add section
import { Section } from "@/components/ui/section";
import { List } from "@/components/ui/list";
import { SettingsRow } from "@/components/ui/settings-row";
<Section title="Account" description="Manage how others see you.">
<List>
<SettingsRow title="Profile" onPress={() => {}} />
<SettingsRow title="Privacy" onPress={() => {}} />
</List>
</Section>
PropType
titlestring
descriptionstring

Both are optional. The children render between them, so Section works around any content — usually a List, but not required.