@wasd/design-system-icon-button
v0.6.0
Published
Icon-only action component with CSS, Vue, React, and Web Component entrypoints. It reuses `@wasd/design-system-button` behavior and tokens for variants, sizes, radius, shadow, motion, disabled styling, links, and ripple behavior.
Readme
@wasd/design-system-icon-button
Icon-only action component with CSS, Vue, React, and Web Component entrypoints.
It reuses @wasd/design-system-button behavior and tokens for variants, sizes,
radius, shadow, motion, disabled styling, links, and ripple behavior.
Button token values remain the theme surface. The icon-button CSS only adapts
the shared button control to a square hit area and maps the glyph size to icon
size tokens. Set circle to use the shared button pill radius token on the
square control.
Apps should import @wasd/design-system/css for aggregate CSS. Standalone users
should import a named theme CSS package, @wasd/design-system-ripple/css, and
then @wasd/design-system-icon-button/css.
Every icon button needs an accessible name. Use label, aria-label, or
aria-labelledby.
