CSS Parts
base — The wrapping element of the icon button.
icon — The icon element of the icon button.

The name of the icon collection.

collection: string

The disabled state of the component

disabled: boolean

Prompts to save the linked URL instead of navigating to it.

download: string

The URL the button points to.

href: string

Whether to flip the icon button. Useful for RTL layouts.

mirrored: boolean

The name of the icon.

name: string

The relationship of the linked URL. See https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types

rel: string

Where to display the linked URL, as the name for a browsing context.

target: "_blank" | "_parent" | "_self" | "_top"

The type of the button. Defaults to button.

type: "reset" | "submit" | "button"

The visual variant of the icon button.

variant: IconButtonVariant

Returns the HTMLFormElement associated with this element.

get form(): HTMLFormElement

Returns HTMLFormElement

Removes focus from the button.

blur(): void

Returns void

Simulates a mouse click on the element

click(): void

Returns void

Sets focus in the button.

focus(options: FocusOptions): void

Parameters

  • options: FocusOptions

Returns void