<FormControl><FormControl.Label>Preferred Primer component interface</FormControl.Label><Select><Select.Option value="figma">Figma</Select.Option><Select.Option value="css">Primer CSS</Select.Option><Select.Option value="prc">Primer React components</Select.Option><Select.Option value="pvc">Primer ViewComponents</Select.Option></Select></FormControl>
OptGroup
labels are not accessible to all screen readers, so they cannot convey critical information just information that improves usability.
<FormControl><FormControl.Label>Preferred Primer component interface</FormControl.Label><Select><Select.OptGroup label="GUI"><Select.Option value="figma">Figma</Select.Option></Select.OptGroup><Select.OptGroup label="Code"><Select.Option value="css">Primer CSS</Select.Option><Select.Option value="prc">Primer React components</Select.Option><Select.Option value="pvc">Primer ViewComponents</Select.Option></Select.OptGroup></Select></FormControl>
<FormControl><FormControl.Label>Preferred Primer component interface</FormControl.Label><Select placeholder="Pick an interface"><Select.Option value="figma">Figma</Select.Option><Select.Option value="css">Primer CSS</Select.Option><Select.Option value="prc">Primer React components</Select.Option><Select.Option value="pvc">Primer ViewComponents</Select.Option></Select></FormControl>
Name | Type | Default | Description |
---|---|---|---|
block | boolean | false | Creates a full width input element |
contrast | boolean | false | Changes background color to a higher contrast color |
placeholder | string | Placeholder text to show when no option is selected. <br /> This option is hidden from the dropdown menu when the 'required' prop is set | |
size | 'small' | 'medium' | 'large' | Creates a smaller or larger input than the default. | |
validationStatus | 'error' | 'success' | 'warning' | Style the input to match the status |