HoopsIconButton
-
class
ui.iconButton.HoopsIconButton() A circular icon button component with customizable size, color, and accessibility features.
Provides a clickable button specifically designed for displaying icons with proper keyboard navigation, hover effects, and disabled states.
Examples
<hoops-icon-button size="md" color="accent"> <svg>...</svg> </hoops-icon-button>
Custom Element
hoops-icon-buttonAttributes
tabindex
Tab order index for keyboard navigationrole
ARIA role for accessibilitysize
Size variant of the buttoncolor
Color variant of the buttondisabled
Whether the button is disabledSlots
- Default slot for icon content (typically SVG elements)
CSS Properties
–hoops-neutral-foreground
Default icon color–hoops-accent-foreground
Icon color when using accent variant–hoops-neutral-foreground-active
Icon color when button is hovered/focused/active–hoops-accent-foreground-active
Accent icon color when button is hovered/focused/active–hoops-neutral-background-hover
Background color on hover/focus/active states–hoops-svg-stroke-color
Stroke color for SVG icons in accent mode–hoops-xl-icon-button-size
Size of extra large button container–hoops-xl-icon-button-content-size
Size of extra large button content–hoops-md-icon-button-size
Size of medium button container–hoops-md-icon-button-content-size
Size of medium button content–hoops-sm-icon-button-size
Size of small button container–hoops-sm-icon-button-content-size
Size of small button contentSince
2025.7.0
Constructors
-
ui.iconButton.HoopsIconButton.constructor() - HoopsIconButton():
HoopsIconButtonReturns:
HoopsIconButton
Properties
-
ui.iconButton.HoopsIconButton.color - color: (“default” | “accent”)
Color variant of the button.
Default
```ts 'default' ```
-
ui.iconButton.HoopsIconButton.disabled - disabled: boolean
Whether the button is disabled and non-interactive.
Default
```ts false ```
-
ui.iconButton.HoopsIconButton.role - role: string
ARIA role for accessibility.
Default
```ts 'button' ```
-
ui.iconButton.HoopsIconButton.size - size: string
Size variant of the button.
Default
```ts 'md' ```
-
ui.iconButton.HoopsIconButton.tabindex - tabindex: string
Tab order index for keyboard navigation.
Default
```ts '0' ```