RayCraftDocs
v1.0.3 raycraft.dev
On this page

ColorButton

Free

A toolbar button for a color: an icon with a bar of the chosen color under it. Clicking it opens the color chooser of the browser.

Example

ColorButton control

Parameters

ParameterTypeDescription
ClassstringExtra CSS classes added to the root element.
DisabledboolDisables interaction.
FallbackColorstringColor the chooser starts on when Value is not set (default #000000).
IconIconNameThe icon shown on the button.
LabelstringAccessible name and tooltip.
StylestringInline style added to the root element.
ValuestringThe chosen color as #rrggbb, or null for none.

Events

EventTypeDescription
ValueChangedEventCallback<string>Raised with the new color.

Package

ColorButton is part of RayCraft Free. Package: RayCraft.Blazor. It comes from nuget.org. See Getting started.