Class IgcIconButtonComponent

igc-icon-button

base - The wrapping element.

icon - The icon element.

Hierarchy

Hierarchy

  • IgcButtonBaseComponent
    • IgcIconButtonComponent

Properties

collection: string

The name of the icon collection.

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.

since v4.5.0. Use the --ig-size CSS custom property instead.

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

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

type: "button" | "reset" | "submit" = 'button'

The type of the button. Defaults to button.

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

The visual variant of the icon button.

Accessors

  • get form(): null | HTMLFormElement
  • Returns the HTMLFormElement associated with this element.

    Returns null | HTMLFormElement

Methods