Skip to main content

InputLabel

Introduction

The label used with all HTML inputs, including both the label itself and a hint.

Live demo

CSS custom properties

Use these properties to theme input-label colours. Linked properties follow their fallback unless they are set directly. See Theming for how to apply custom properties.

PropertyTypeDefault valueFallback valueDescription
--rpf-label-text-colorLinkedvar(--rpf-text-primary)Label text colour
--rpf-label-hint-colorLinkedvar(--rpf-text-secondary)Hint text colour
--rpf-label-text-color-disabledLinkedvar(--rpf-input-color-disabled)Disabled label and hint text colour
--rpf-input-color-disabledIndependentvar(--rpf-grey-500)Shared disabled input colour and the fallback for disabled label text

Implementation: