Buttons

FlexCore's ButtonControl supports icons, disabled states, bare-style mode, and click propagation control.

Standard Variants

With Icons

BareStyle Mode

When BareStyle="true", the default .fx-button class is suppressed — the host owns all styling.

Interactive

Click count: 0

Markup

<ButtonControl CssClass="btn-primary" IconCss="bi bi-plus-circle">Add Item</ButtonControl>
<ButtonControl CssClass="btn-danger" Disabled="true">Disabled</ButtonControl>
<ButtonControl BareStyle="true" CssClass="my-class">Host-Styled</ButtonControl>
<ButtonControl CssClass="btn-primary" OnClick="@HandleClick">Click Me</ButtonControl>
An unhandled error has occurred. Reload 🗙

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.