Skip to content

RequiredLabel

A small utility component that renders a field label with an optional red asterisk when the field is required. Used internally by ColorPickerField, PraxisTimePicker, and other form components.

Basic Usage

Demo

Props

Props
PropTypeDefaultDescription
labelrequiredstringThe label text to display.
requiredbooleanfalseWhen true, renders a red asterisk (*) after the label text.

Built with VitePress