<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>
<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 |
size | 'small' | 'medium' | 'large' | Creates a smaller or larger input than the default. | |
validationStatus | 'warning' | 'error' | Style the input to match the status | |
Additional props are passed to the <select> element. See MDN for a list of props accepted by the <select> element. |
The Select.OptGroup
component accepts the same props as a native HTML <optgroup>
.
The Select.Option
component accepts the same props as a native HTML <option>
.