Angular ToolBar Appearance
The ToolBar provides predefined appearance options which allow you to set different sizes and fill modes for the component.
Size
To change the default padding of the ToolBar component, set the size property. It accepts values of type ToolbarSize.
The size option supports the following values:
smallmedium(Default)largenone—Removes the built-in sizing styles, allowing you to fully customize thepadding.
The following example demonstrates how to define the ToolBar size.
Fill Mode
The ToolBar allows you to set different fill modes by using the fillMode property. It accepts values of type ToolbarFillMode.
The fillMode option supports the following values:
solid(Default)—Sets abackground colorandsolid borders.flat—Setstransparent backgroundandtransparent borders.outline—Sets atransparent backgroundandsolid borders.none—The none option removes the built-in fill mode styles. Allows for custombackgroundandborderstyles.
The
fillModeoption only affects the appearance of the ToolBar component and does not propagate to the ToolBar tools. Each ToolBar tool has a dedicatedfillModeoption that can be defined individually.
The following example demonstrates how to define a fill mode only for the ToolBar and including the ToolBar tools.