KasyKasy

Close Button

Live preview and documentation for the Close Button component.

About

Icon-only circular button (xmark glyph by default) for closing dialogs, sheets, cards, and toasts.

  • onPressed: action on tap; null leaves the button disabled.
  • size: diameter of the circular surface (default 24); the icon scales along with it (16/24 of the size).
  • icon: custom glyph (default KasyIcons.close).
  • semanticLabel: accessible name (default "Close").
  • States: default (neutral background), hover (darker background), focus (ring), disabled (icon at reduced opacity).

Preview

Loading the component…

Last updated on 11/03/2026

On this page