- CSS Parts
base— The wrapping element of the icon button.icon— The icon element of the icon button.
Properties
Section titled "Properties"collection
Section titled "collection"The name of the icon collection.
collection: string disabled
Section titled "disabled"The disabled state of the component
disabled: boolean download
Section titled "download"Prompts to save the linked URL instead of navigating to it.
download: string The URL the button points to.
href: string mirrored
Section titled "mirrored"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 target
Section titled "target"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" variant
Section titled "variant"The visual variant of the icon button.
variant: IconButtonVariant Accessors
Section titled "Accessors"Returns the HTMLFormElement associated with this element.
get form(): HTMLFormElement Returns HTMLFormElement
Methods
Section titled "Methods"Removes focus from the button.
blur(): void Returns void
click
Section titled "click"Simulates a mouse click on the element
click(): void Returns void
focus
Section titled "focus"Sets focus in the button.
focus(options: FocusOptions): void Parameters
- options:
FocusOptions