Skip to component details
EXEPERTAI LAB
ProductCapabilitiesTrustFAQUI GalleryBlogNews
Sign inOpen app ↗
ProductCapabilitiesTrustFAQUI GalleryBlogNewsSign in
← Browse gallery
Actions·@exepert/ui / IconButton

Icon Button

A compact action control for toolbars and dense workspaces.

Open in Playground ↗All components

Variants and states

8 copy-ready examples

Primary icon button

The primary variant gives a compact tool clear priority.

Open in Playground ↗
Starting preview…
import { IconButton } from "@exepert/ui";
import "@exepert/ui/styles.css";
export default function Example() {
  return (
    <IconButton label="Run" icon="▶" variant="primary" />
  );
}

Usage

Always provide an accessible label, especially when the icon is the only visible content.

Props

  • label: string
  • icon: ReactNode
  • variant: primary | secondary | ghost | danger
  • size: sm | md | lg
  • aria-pressed: boolean
  • loading: boolean
  • disabled: boolean

Accessibility

  • The label is exposed through aria-label.
  • Keep the hit area at least 44 pixels on touch layouts.

Install

Install the pinned public release, then import the component and stylesheet.

npm install @exepert/ui@0.1.0

import { IconButton } from "@exepert/ui";

import "@exepert/ui/styles.css";

EXEPERTAI LAB

Compare supported models, inspect system behaviour, and understand the context around each result.

PrivacyTermsContact

EXEPERT AI is an independent software and AI research lab in Malaysia

Malaysia · hello@exepert.com

Open in Gmail ↗

© 2026 EXEPERT AI. All rights reserved.