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

Optional collection

Section titled "collection"

The name of the icon collection.

collection: string

Defined in src/components/button/icon-button.ts:47

Optional download

Section titled "download"

Inherited from: IgcButtonBaseComponent

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

download: string

Defined in src/components/button/button-base.ts:56

Inherited from: IgcButtonBaseComponent

The URL the button points to.

href: string

Defined in src/components/button/button-base.ts:49

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

mirrored: boolean = false

Defined in src/components/button/icon-button.ts:54

The name of the icon.

name: string

Defined in src/components/button/icon-button.ts:40

Inherited from: IgcButtonBaseComponent

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

rel: string

Defined in src/components/button/button-base.ts:71

Inherited from: IgcButtonBaseComponent

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

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

Defined in src/components/button/button-base.ts:63

Inherited from: IgcButtonBaseComponent

The type of the button. Defaults to button.

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

Defined in src/components/button/button-base.ts:42

The visual variant of the icon button.

variant: IconButtonVariant = 'contained'

Defined in src/components/button/icon-button.ts:61

Inherited from: IgcButtonBaseComponent

Returns the HTMLFormElement associated with this element.

get form(): HTMLFormElement | null

Defined in src/components/button/button-base.ts:90

Returns HTMLFormElement | null

Inherited from: IgcButtonBaseComponent

Removes focus from the button.

blur(): void

Defined in src/components/button/button-base.ts:107

Returns void

Inherited from: IgcButtonBaseComponent

Simulates a mouse click on the element

click(): void

Defined in src/components/button/button-base.ts:101

Returns void

Inherited from: IgcButtonBaseComponent

Sets focus in the button.

focus(options: FocusOptions): void

Defined in src/components/button/button-base.ts:96

Parameters

  • options: FocusOptions

Returns void