Skip to main content

Bunifu Button

Fully customizable buttons with icon support to visually represent button actions.

Important

For new users and those migrating from a previous version, please note that you now won't need to set colors for the onHoverState and OnPressedState as the colors will be automatically generated for you whenever the property AutoGenerateColors is set to true. Also, the BorderRadius and BorderThickness will be applied based on the default values.

Bunifu Button is a highly flexible button control offering more than a dozen built-in design styles, giving you a strong creative starting point for building polished interfaces.

Bunifu Button preview

Bunifu Button preview

Bunifu Button preview

From subtle state animations and border styling to icon support, smooth curves, and overall visual polish, Bunifu Button covers a wide range of design needs.

Now, let's get straight into some of the best features included.

Bunifu Button preview

You can quickly adjust the button's most common properties by clicking the Play icon to open the Smart Tags panel:

Bunifu Button preview

Animations

Bunifu Button includes built-in animated transitions between three states — Idle, Hover, and Pressed — represented by the properties OnIdleState, OnHoverState, and OnPressedState.

Here's an example showing all three states in action:

Bunifu Button preview

Border Style Options

The BorderStyle property offers three border variations: Solid, Dash, and Dot.

Solid:

Bunifu Button preview

Dashed:

Bunifu Button preview

Dotted:

Bunifu Button preview

These styles can also change dynamically between states — for instance, switching to Solid only when transitioning from idle to hover:

Bunifu Button preview

Edge Customizations

The CustomizableEdges property lets you choose exactly which corners are affected when applying border radius styling:

Bunifu Button preview

Your edge settings persist automatically across state changes at runtime:

Bunifu Button preview

Automatic Sizing

Enabling AutoSize allows the button to automatically resize itself based on its content — both text and icons — so you don't need to manually manage dimensions.

Here the button resizes based on its text content:

Bunifu Button preview

The same behavior applies when icons are added:

Bunifu Button preview

Toggling Focus

Bunifu Button supports toggle-style focus behavior — useful for grouped buttons acting like tabs, such as when paired with Bunifu Pages.

Example:

Bunifu Button preview

Enable this with AllowToggling. Doing so automatically sets IndicateFocus to true as well, which visually signals the focused button. You can also control which state (Idle, Hover, or Pressed — the default) represents the focused appearance via the FocusState property.

Automatic Color Generation

When AutoGenerateColors is enabled, Bunifu Button automatically derives Hover and Pressed state colors from your base Idle colors (IdleFillColor and IdleBorderColor) — a lighter variant for hover, a darker variant for pressed.

Example:

Bunifu Button preview

Fine-tune the intensity of these generated shades using ColorContrastOnHover and ColorContrastOnClick (accepting values from 0–100, or negative values to invert which state appears lighter/darker).

Icons

Bunifu Button supports left and right icons via IdleIconLeftImage and IdleIconRightImage, both accepting Image values. These can also be customized separately per state.

  • Icon shown only in the Idle state:

Bunifu Button preview

  • Different icons for Hover and Pressed states:

Bunifu Button preview

  • Icon-only buttons (no text):

Bunifu Button preview

Bunifu Button is one of the framework's foundational controls, designed to give you a strong creative toolkit for building modern interfaces. More features are planned for future releases.