Skip to content
IzzyBlazor 0.1.0-alpha.17

Enter all results ↑ ↓ move Esc close

ColorPicker

A color field with a hex box and presets.

IzzyBlazor.ColorPicker in the IzzyBlazor.Core package, generated from the 0.1.0-alpha.17 assembly and its doc comments.

Properties (8)

ReadOnlybool = falseAdded in 0.1.0-alpha.13

Makes the field read-only: the hex text can be focused and selected, the swatch and presets are off, and the value still posts.

PresetsIEnumerable<string>?

Colors offered as swatches under the field, as hex strings. Shown with script; without it, Chrome and Edge list them in the browser's own picker.

ShowHexbool = true

A hex text box beside the swatch (with script), for typing or pasting a value. Defaults to true. A read-only field shows it anyway, as text that can be focused.

HexLabelstring? = "hex"

The hex box's name after the label. Defaults to "hex".

PresetsLabelstring? = "Preset colors"

The presets' group name. Defaults to "Preset colors".

PresetTextFunc<string, string?>?Added in 0.1.0-alpha.13

A name for each preset, such as "Ocean", given the string from Presets. Screen readers hear it instead of the hex value, and it's the swatch's tooltip. Return null to keep the hex value.

@bind-Valuestring?

The value, bound with @bind-Value.

DisplayNamestring?

The field's name in validation messages from the input itself, such as a value that can't be parsed.

Events (0)

No events.