Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 694 Bytes

API.md

File metadata and controls

20 lines (13 loc) · 694 Bytes

SegmentedControl

Usage

To use SegmentedControl, you can import the component from the @dhis2/ui library

import { SegmentedControl } from '@dhis2/ui'

Props

Name Type Default Required Description
options arrayOf({<br/> "label": "string",<br/> "value": "string",<br/> "disabled": "boolean"<br/>}) * Options to populate the segmented control
selected string * An option to select; should match the value property of the option to be selected
onChange function * Called with the signature ({ value: string }, event)
ariaLabel string Used to provide an accessible label to a segmented control without a visible label