ion-buttons
The Buttons component is a container element. It should be used inside of a toolbar and can contain several types of buttons, including standard buttons, menu buttons, and back buttons.
Basic Usage
Buttons Placement
Buttons can be positioned inside of the toolbar using a named slot. The below chart has a description of each slot.
| Slot | Description | 
|---|---|
| start | Positions to the leftof the content in LTR, and to therightin RTL. | 
| end | Positions to the rightof the content in LTR, and to theleftin RTL. | 
| secondary | Positions element to the leftof the content iniosmode, and directly to therightinmdmode. | 
| primary | Positions element to the rightof the content iniosmode, and to the farrightinmdmode. | 
Types of Buttons
A button in a toolbar is styled to be clear by default, but this can be changed using the fill property on the button. The properties included on back button and menu button in this example are for display purposes; see their respective documentation for proper usage.
Collapsible Buttons
The collapse property can be set on the buttons to collapse them when the header collapses. This is typically used with collapsible large titles.
This feature is only available for iOS.
Properties
collapse
| Description | If true, buttons will disappear when its parent toolbar has fully collapsed if the toolbar is not the first toolbar. If the toolbar is the first toolbar, the buttons will be hidden and will only be shown once all toolbars have fully collapsed. Only applies in iosmode withcollapseset totrueonion-header.Typically used for Collapsible Large Titles | 
| Attribute | collapse | 
| Type | boolean | 
| Default | false | 
Events
No events available for this component.
Methods
No public methods available for this component.
CSS Shadow Parts
No CSS shadow parts available for this component.
CSS Custom Properties
No CSS custom properties available for this component.
Slots
No slots available for this component.