Data display
List group
the CONTAINER around rows: owns the title, dividers, footnote and card/plain surface · wraps ListRows and sets last for you (wrapping ListRow in your own component? forward last) · variant card/plain (plain = settings look)
function ListGroupDemo() { const [quick, setQuick] = React.useState('face'); return ( <View className="w-full gap-6"> <ListGroup title="Settings" variant="plain" footnote="Plain groups run straight on the background — the settings look."> <ListRow title="Accounts" chevron onPress={() => {}} /> <ListRow title="Login and security" subtitle="Face ID · Two-step on" chevron onPress={() => {}} /> <ListRow title="Notifications" chevron onPress={() => {}} /> </ListGroup> <ListGroup title="Quick access"> <ListRow leading={<IconCircle as={ScanFaceIcon} shape="square" />} title="Face ID" subtitle="Open the app with Face ID" select={{ mode: 'radio', selected: quick === 'face' }} onPress={() => setQuick('face')} /> <ListRow leading={<IconCircle as={LockIcon} shape="square" />} title="Passcode" subtitle="Open the app with a 4-digit passcode" select={{ mode: 'radio', selected: quick === 'code' }} onPress={() => setQuick('code')} /> </ListGroup> </View> );}Usage
Wraps ListRows and sets last on the final one for you. plain drops the card for the settings look; pair with ListRow select for radio or checkbox rows.
API
<ListGroup title? footnote? variant="card|plain">{rows}</ListGroup>Get it
Already in every copy of the native kit:
import { ListGroup } from '@/components/kit/list-group';Details
- Exports
ListGroup- Installs with
- @halftone-native/card, @halftone-native/lib-utils, @halftone-native/text
- Also searched as
- rows, settings list, grouped list, plain list, choice rows
- Registry JSON
- /r/native/list-group.json
<div className="flex w-full flex-col gap-8"> <ListGroupDemo /> <ListGroupDemo plain /></div>Usage
Wraps ListRows and sets last on the final one. plain drops the card for the settings look.
API
<ListGroup title? footnote? variant="card|plain">{rows}</ListGroup>Get it
Already in every copy of the web kit:
import { ListGroup } from '@/components/kit/list-group';Details
- Exports
ListGroup- Packages
- cn@^0.5.2
- Installs with
- card
- Also searched as
- list, settings group
- Registry JSON
- /r/web/list-group.json
Agents: the whole registry is at /llms.txt.