Skip to main content

Toggle buttons

Since 2.0.0

Development

Examples

Toggle button primary

PreviewAngularReactVueJavaScript

Toggle button primary outline

PreviewAngularReactVueJavaScript

Toggle button primary ghost

PreviewAngularReactVueJavaScript

Toggle button secondary

PreviewAngularReactVueJavaScript

Toggle button secondary outline

PreviewAngularReactVueJavaScript

Toggle button secondary ghost

PreviewAngularReactVueJavaScript

Icon Toggle button secondary outline

PreviewAngularReactVueJavaScript

Icon Toggle button secondary ghost

PreviewAngularReactVueJavaScript

Icon Toggle Button secondary

PreviewAngularReactVueJavaScript

Icon Toggle button primary outline

PreviewAngularReactVueJavaScript

Icon Toggle Button primary ghost

PreviewAngularReactVueJavaScript

API (ix-toggle-button)

Properties

Name
Description and specifications
disabled
Disable the button
Attribute:
disabled
Type:
boolean
Default:
false
ghost
Button with no background or outline
Attribute:
ghost
Type:
boolean
Default:
false
icon
Icon name
Attribute:
icon
Type:
string | undefined
loading
Loading button
Attribute:
loading
Type:
boolean
Default:
false
outline
Outline button
Attribute:
outline
Type:
boolean
Default:
false
pressed
Show button as pressed
Attribute:
pressed
Type:
boolean
Default:
false
variant
Button variant. Important: Variant 'primary' can only be combined with either outline or ghost.
Attribute:
variant
Type:
"danger" | "primary" | "secondary"
Default:
'secondary'

Events

Name
Description and specifications
pressedChange
Pressed change event
Detail:
boolean

API (ix-icon-toggle-button)

Properties

Name
Description and specifications
disabled
Disable the button
Attribute:
disabled
Type:
boolean
Default:
false
ghost
Button with no background or outline
Attribute:
ghost
Type:
boolean
Default:
false
icon
Icon name
Attribute:
icon
Type:
string | undefined
loading
Loading button
Attribute:
loading
Type:
boolean
Default:
false
outline
Outline button
Attribute:
outline
Type:
boolean
Default:
false
pressed
Show button as pressed
Attribute:
pressed
Type:
boolean
Default:
false
size
Size of icon in button
Attribute:
size
Type:
"12" | "16" | "24"
Default:
'24'
variant
Button variant. Important: Variant 'primary' can only be combined with either outline or ghost.
Attribute:
variant
Type:
"danger" | "primary" | "secondary"
Default:
'secondary'

Events

Name
Description and specifications
pressedChange
Pressed change event
Detail:
boolean