Visual Picker
Visual Picker
- HTML/CSS:Dev Ready
- Layout:Responsive
A visual picker can be either radio buttons, checkboxes, or links that are visually enhanced.
Coverable Content
Preview
Overview of CSS Classes
- Selector
- The CSS class being referred to.
- Summary
- A description of what the class does.
- Support
- Whether the class name is dev-ready (meaning it's fully vetted and tested and safe to use) or prototype (which means it's not fully vetted yet).
- Restrict
- The selector that the class name is allowed to be used on.
- Variant
- The base level pattern for a component. A variant can be extended to create another variant of that component, for example, a stateful button is a derivative of the base button.
- Modifier
- A single class that can be added to an HTML element of a component to modify its output. Typically these will be colors, sizing and positioning.
| Selector | .slds-visual-picker |
|---|---|
| Summary | Initializes a visual picker component |
| Support | dev-ready |
| Restrict | div |
| Variant | True |
| Selector | .slds-visual-picker__figure |
|---|---|
| Summary | Visual container for icon and text |
| Restrict | .slds-visual-picker div, .slds-visual-picker span |
| Selector | .slds-is-not-selected |
|---|---|
| Summary | Non-selected state |
| Restrict | .slds-visual-picker__figure > span |
| Selector | .slds-is-selected |
|---|---|
| Summary | Selected state |
| Restrict | .slds-visual-picker__figure > span |
| Selector | .slds-visual-picker__icon |
|---|---|
| Summary | Icon within visual picker |
| Restrict | .slds-visual-picker__figure |
| Selector | .slds-visual-picker__text |
|---|---|
| Summary | Text within visual picker |
| Restrict | .slds-visual-picker__figure |
| Selector | .slds-visual-picker_medium |
|---|---|
| Summary | Size modifier to adjust to the default size of medium |
| Restrict | .slds-visual-picker |
| Modifier | True |
| Selector | .slds-visual-picker_large |
|---|---|
| Summary | Size modifier to adjust to the size of large |
| Restrict | .slds-visual-picker |
| Modifier | True |
| Selector | .slds-visual-picker__body |
|---|---|
| Summary | Text area that sits outside the visual picker |
| Restrict | .slds-visual-picker span |
| Selector | .slds-visual-picker__text-check |
|---|---|
| Summary | Checkmark that is visibily toggled when input is checked |
| Support | dev-ready |
| Restrict | .slds-visual-picker span |
| Variant | True |
| Selector | .slds-visual-picker_vertical |
|---|---|
| Summary | Initializes a vertical visual picker component |
| Support | dev-ready |
| Restrict | .slds-visual-picker |
| Variant | True |
| Selector | .slds-box_link |
|---|---|
| Summary | Checkmark that is visibily toggled when input is checked |
| Support | dev-ready |
| Restrict | .slds-box |
| Variant | True |