Skip to content
Star

PxRequiredLabel

A small utility component that renders a field label with an optional red asterisk when the field is required. Used internally by PxColorInput, PxTimePicker, 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