ColorPicker
IzzyBlazor.ColorPicker in the IzzyBlazor.Core package, generated from the 0.1.0-alpha.17 assembly
and its doc comments.
Properties (8)
ReadOnlybool = falseMakes 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 = trueA 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?>?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.