When to use it
Items are independent. Use a segmented control when exactly one option must be chosen.
Native example
Items are independent. Use a segmented control when exactly one option must be chosen.

Captured exampleExpo web renderer
Open interactive previewimport { LumenToggleGroup } from '@santi020k/lumen-react-native'
import { useState } from 'react'
export function TextFormatting() {
const [formats, setFormats] = useState<string[]>(['italic'])
return (
<LumenToggleGroup
label="Text formatting"
value={formats}
onValueChange={setFormats}
items={[
{ value: 'italic', label: 'Italic', icon: 'italic' },
{ value: 'underline', label: 'Underline', icon: 'underline' },
{ value: 'strikethrough', label: 'Strikethrough', icon: 'strikethrough' }
]}
/>
)
}Reference
The primary shared and platform-specific options exposed by LumenToggleGroup.
| API | Values or type | Default | Description |
|---|---|---|---|
| items / value / label | buttons / pressed values / group name | required / none pressed / required | Items are independent. |
Native behavior
Items are independent. Use a segmented control when exactly one option must be chosen.
Named group; each item exposes pressed state.
Shared component