import { html, css, cssManager } from '@design.estate/dees-element'; export const demoFunc = () => html`

Basic Label

A simple text label with no additional indicators.

label="Username"
label="Email Address"

Required Indicator

When required is set, a red asterisk appears after the label text.

required=${'{true}'}
required=${'{false}'} (default)

Info Text (Info Icon)

When infoText is set, an info icon appears next to the label. Hover over it to see the tooltip.

infoText="..."
short infoText

Required + Info Text

Both indicators can be combined. The asterisk appears first, then the info icon.

required + infoText
required + infoText

Empty Label

When label is empty or not set, nothing is rendered. The element below has no label text:

label="" (empty)
`;