Skip to main content

<st-icon-button>

JSON type: IconButton

A small, icon-only action button. The icon is default-slotted content (the package has no icon library dependency), the same convention as st-dropdown/st-menu-grid-item's slot="icon".

Fires a plain native click — no custom event, since a caller just wants an ordinary button.

Usage​

import '@sankhyatronics/sankhya-cms/icon-button'; // registers <st-icon-button>

Properties​

PropertyAttributeTypeDefaultDescription
labellabelstring''Accessible name, set as the button's aria-label and its title (tooltip). Required for a control with no visible text. Matches the source component's ariaLabel (renamed: modern browsers already expose a native ariaLabel reflected property on every Element, so reusing that exact name as a Lit reactive property would shadow it).
disableddisabledbooleanfalse

See the live examples in Storybook.