IconButton

A button that displays only an icon, typically for actions like close, menu, or settings.

tsx
import { IconButton, XIcon, MenuIcon } from '@xdev-asia/x-ui-react';

Examples

Props

  • icon - Icon element to render
  • aria-label - Accessibility label (required)
  • variant - 'solid' | 'outline' | 'ghost'
  • size - 'sm' | 'md' | 'lg'