Appearance
The KendoReact Toolbar allows selecting a predefined size and fill mode options that changes its appearance.
Size
To change the default size of the Toolbar, set its size
property which will change the padding of the Toolbar element. The available size options are:
small
—Sets the padding of the component to 4px 4px.medium
(default)—Sets the padding of the component to 8px 8px.large
—Sets the padding of the component to 10px 10px.null
—This option removes the the built-in size styles of the Toolbar. Allows for custompadding
.
The following example demonstrates how to define the Toolbar size:
Fill Mode
To change the default fill mode of the Toolbar, set its fillMode
property. It accepts the following values:
solid
(default)—Applies abackground
color andsolid borders
.flat
—Sets atransparent background
andsolid bottom border
.outline
—Sets atransparent background
andsolid borders
.null
—This option removes the built-in fill mode styles of the Toolbar. Allows for custombackground
andborder
styles.
The
fillMode
property only affects the appearance of the ToolBar component and does not propagate to theToolBar tools
. Each ToolBar tool has a dedicatedfillMode
property that can be defined individually.
The following example demonstrates how to define a fill mode only for the ToolBar and including the ToolBar tools.