Class IgcIconButtonComponent

element

igc-icon-button

csspart

base - The wrapping element.

csspart

icon - The icon element.

Hierarchy

  • IgcButtonBaseComponent
    • IgcIconButtonComponent

Index

Constructors

Properties

collection: string

The name of the icon collection.

disabled: boolean = false

Determines whether the button is disabled.

download: string

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

href: string

The URL the button points to.

mirrored: boolean = false

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

name: string

The name of the icon.

rel: string

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

size: "small" | "medium" | "large"

Determines the size of the component.

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

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

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

The type of the button. Defaults to undefined.

variant: "flat" | "outlined" | "contained" = 'contained'

The visual variant of the icon button.

tagName: "igc-icon-button" = 'igc-icon-button'

Accessors

  • get ariaLabel(): string
  • set ariaLabel(value: string): void

Methods

  • blur(): void
  • emitEvent<K, D>(type: K, eventInitDict?: CustomEventInit<D>): boolean
  • Type Parameters

    • K extends keyof IgcButtonEventMap

    • D extends void

    Parameters

    • type: K
    • Optional eventInitDict: CustomEventInit<D>

    Returns boolean

  • focus(options?: FocusOptions): void