/

Button Block

Button Block

A styled link button with full control over colors, hover states, typography, icon, border, radius, shadow, and an optional underline animation. Renders as <a> when a URL is set.

BUTTON STYLES

When to use this block

  • Primary and secondary call-to-action buttons
  • Ghost/outline buttons with border and transparent background
  • Text links with arrow icons and underline hover effects
  • Full-width buttons in cards or narrow containers

Colors & Hover

Set text and background colors with separate hover states. Background supports solid color or CSS gradient.

Colors

Sidebar Panel

Text Color

#FFFFFF

Background

#171717

Hover Text

#FFFFFF

Hover Background

#3D3D3D

TRY HOVERING

Typography

Font size, letter spacing (responsive), and font weight (toolbar). All values in px.

Typography

Sidebar Panel

Font Size

px

Letter Spacing

px

Font Weight

WEIGHT OPTIONS

Light

300

Normal

400

Medium

500

Semi-Bold

600

Bold

700

Extra-Bold

800

6 weights (300–800). Same as Paragraph Block.

Icon

Add an icon to the left or right of the label. Upload an SVG for recoloring support, or use any image format.

Icon

Sidebar Panel

Icon

Position

Width

px

Height

px

Color

#FFFFFF

Hover Color

#D1D1D1

ICON POSITIONS

Default position

SVG icons support iconColor and iconHoverColor via CSS. Non-SVG images display as-is.

Full Width

Stretch the button to fill its container. Text is centered automatically.

Width

Full Width

Inline (default)

Full width

Underline Animation

Add a sliding underline that appears on hover. Control its color and thickness.

Animation

Sidebar Panel

Animation

Color

#171717

Height

px

TRY HOVERING

Great for text-style links without a visible background.

Border, Radius & Shadow

Per-corner radius (responsive), per-side borders with hover color, and shadow presets. Applied to the inner link element.

Border Radius

Per-corner objects, responsive across 3 breakpoints. Use 999px for pill-shaped buttons.

Border & Shadow

Border width, color, and hover border color. Shadow presets: sm through 2xl, plus inner. Shadow takes priority over border.

Padding

Inner spacing in pixels. Responsive across breakpoints. Controls the button’s physical size — applied to the <a> element, not the outer wrapper.

SIZE VIA PADDING

Responsive: Mobile Tablet Desktop

All Available Controls

content: button label (RichText). url: link href — if empty, renders as <div> instead of <a>. linkTarget: "_blank" for new tab. rel: auto-set.

textColor / hoverTextColor, backgroundColor / hoverBackgroundColor, backgroundGradient (overrides solid color). All applied to the inner .button-block-link.

fontSize / letterSpacing (+Md/Lg): responsive, px. fontWeight: 300–800 (6 values), via toolbar.

iconUrl / iconId: uploaded image. iconPosition: "left" or "right". iconWidth / iconHeight: px. SVG icons: iconSvgContent rendered inline, iconColor / iconHoverColor applied via CSS.

isFullWidth: true → flex w-full justify-center. false → inline-flex (default).

animation: "underline" or empty. underlineColor: hex (default currentColor). underlineHeight: px (default 2). Sliding bar via ::after pseudo-element.

Radius: borderRadiusMobile/Tablet/Desktop (per-corner). Border: borderMobile/Tablet/Desktop or legacy borderPosition + borderWidth + borderColor. hoverBorderColor. Shadow: sm–2xl, inner (takes priority over border).

paddingTop/Bottom/Left/Right (+Md/Lg) in px. Applied to .button-block-link (the inner <a>), not the outer wrapper.

Related Blocks