--- title: Range desc: A range input allows users to select a value from a specified range. ico: mdi:slider keywords: - slider 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: variant type: radio label: Variant desc: Color variants. default: primary options: - primary - secondary - accent - info - success - warning - danger - name: state type: radio label: State desc: These states will happen automatically when using valid sematic markup. default: default options: - default - focus - disabled preview: |
code: html: | logic: withLabel: "this.withLabel ? '\\n Label\\n \\n ' : ''" variant: "this.variant !== 'primary' ? 'prs-range-'+ this.variant : ''" focus: "this.state === 'focus' ? ' prs-range_focus' : ''" disabled: "this.state === 'disabled' ? '\\n disabled' : ''" ---