---
title: Select
desc: Form element that allows users to to pick a value from a list of options.
ico: mdi:form-select
keywords:
- option
- dropdown
controls:
- name: withLabel
type: toggle
label: With label
desc: Display label. Make sure to include aria-label to account for missing label text.
default: false
- name: state
type: radio
label: State
desc: These states will happen automatically when using valid sematic markup.
default: default
options:
- default
- focus
- disabled
- name: ghost
type: toggle
label: Ghost
desc: Border-less and background-less. Alternate display for extreme cases.
default: false
preview: |
code:
html: |
logic:
withLabel: "this.withLabel ? '\\n Label\\n \\n ' : ''"
ghost: "this.ghost ? ' prs-input-ghost' : ''"
state: "this.state === 'focus' ? ' prs-input_focus' : ''"
disabled: "this.state === 'disabled' ? ' disabled' : ''"
---