Skip to main content

IconButton

Icon-only button variant for compact actions like toolbars, close buttons, and navigation controls.

note

IconButton is achieved using the Button component with icon props and compact styling.

Import​

import { Button, Text } from '@scaffald/ui';

Basic Usage​

Live Preview
<ThemeProvider initialTheme="light">
<Button variant="ghost" color="primary" style={{width: 40, height: 40, padding: 0}}>
  <Text>+</Text>
</Button>
</ThemeProvider>

Props​

See the TypeScript definitions for the complete props API.

Accessibility​

  • Keyboard navigation support
  • Screen reader compatible
  • ARIA attributes included

Changelog​

See GitHub Releases for version history.