KasyKasy

Close Button

Live preview and documentation for the Close Button component.

Preview

componentPreview.loading

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).

Last updated on 08/23/2026

On this page