Skip to content

Commit 1f4390d

Browse files
committed
docs(toolbar): document parts
1 parent 329048c commit 1f4390d

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

core/api.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2000,4 +2000,7 @@ ion-toolbar,css-prop,--padding-end,md
20002000
ion-toolbar,css-prop,--padding-start,ios
20012001
ion-toolbar,css-prop,--padding-start,md
20022002
ion-toolbar,css-prop,--padding-top,ios
2003-
ion-toolbar,css-prop,--padding-top,md
2003+
ion-toolbar,css-prop,--padding-top,md
2004+
ion-toolbar,part,background
2005+
ion-toolbar,part,container
2006+
ion-toolbar,part,content

core/src/components/toolbar/toolbar.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ import type { Color, CssClassMap, StyleEventDetail } from '../../interface';
1313
* @slot secondary - Content is placed to the left of the toolbar text in `ios` mode, and directly to the right in `md` mode.
1414
* @slot primary - Content is placed to the right of the toolbar text in `ios` mode, and to the far right in `md` mode.
1515
* @slot end - Content is placed to the right of the toolbar text in LTR, and to the left in RTL.
16+
*
17+
* @part background - The background of the toolbar, covering the entire area behind the toolbar content.
18+
* @part container - The container that wraps all toolbar content, including the default slot and named slot content.
19+
* @part content - The container for the default slot, wrapping content provided without a named slot.
1620
*/
1721
@Component({
1822
tag: 'ion-toolbar',

0 commit comments

Comments
 (0)