Wheel Item
<quiet-wheel-item>
Represents a single option in a wheel. Use wheel items when the options aren't a numeric range or need content other than plain text, such as icons.
This component must only be used within a wheel. You can see some examples of wheel items being used in the wheel documentation.
API Jump to heading
Importing Jump to heading
The autoloader is the recommended way to import components but, if you prefer to do it manually, the following code snippets will be helpful.
To manually import <quiet-wheel-item> from the CDN, use the following code.
import 'https://cdn.quietui.org/v6.7.0/components/wheel-item/wheel-item.js';
To manually import <quiet-wheel-item> from a self-hosted distribution, use the
following code. Remember to replace /path/to/quiet with the appropriate local path.
import '/path/to/quiet/components/wheel-item/wheel-item.js';
Slots Jump to heading
Wheel Item supports the following slots. Learn more about using slots
| Name | Description |
|---|---|
| (default) |
The wheel item's content. For plain-text content, you can use the label attribute
instead.
|
Properties Jump to heading
Wheel Item has the following properties that can be set with corresponding attributes. In many cases, the attribute's name is the same as the property's name. If an attribute is different, it will be displayed after the property. Learn more about attributes and properties
| Property | Description | Reflects | Type | Default |
|---|---|---|---|---|
value
|
The wheel item's value. |
|
string
|
''
|
label
|
A plain-text label that's shown when nothing is slotted. When set, it's also the text used for typeahead and announced by assistive devices instead of the item's text content. |
|
string
|
|
disabled
|
Disables the wheel item so it can't be selected. |
|
boolean
|
false
|
selected
|
Whether the wheel item is selected. This is managed by the wheel. |
|
boolean
|
false
|
Custom States Jump to heading
Wheel Item has the following custom states. You can target them with CSS using the selectors shown below. Learn more about custom states
| Name | Description | CSS selector |
|---|---|---|
selected |
Applied when the wheel item is selected. |
:state(selected)
|
disabled |
Applied when the wheel item is disabled. |
:state(disabled)
|