RayCraftDocs
v1.0.3 raycraft.dev
On this page

IconButton

Free

Button that shows only an icon. Label is required: it becomes the accessible name and the tooltip.

Example

IconButton control

Parameters

ParameterTypeDescription
ClassstringExtra CSS classes added to the root element.
ColorButtonColorPrimary (default), Secondary, Info, Success, Warning or Danger.
DisabledboolDisables interaction.
IconIconNameIcon to show (IconName).
LabelstringVisible label text (charts: accessible name; IconButton: accessible name and tooltip).
SizeSizeSmall, Medium (default) or Large; Dialog also has ExtraLarge.
StylestringInline style added to the root element.
TypestringHow the cell is drawn: Text, Check, Image, Progress, Link, Badge or Dropdown.
VariantVariantVisual style: Filled, Outlined or Text.

Events

EventTypeDescription
OnClickEventCallback<MouseEventArgs>Raised when the button is clicked.

Package

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