1.1.10 • Published 5 months ago
@synerise/ds-toolbar v1.1.10
id: toolbar
title: Toolbar
Toolbar UI Component
Installation
npm i @synerise/ds-toolbar
or
yarn add @synerise/ds-toolbarUsage
import Toolbar from '@synerise/ds-toolbar'
<Toolbar>
<ToolbarGroup>
<ToolbarButton mode="single-icon">
<Icon component={<StepBackM />} />
</ToolbarButton>
<ToolbarButton mode="single-icon">
<Icon component={<StepForwardM />} />
</ToolbarButton>
</ToolbarGroup>
</Toolbar>Demo
API
Toolbar
| Property | Description | Type | Default |
|---|---|---|---|
| children | contents of the toolbar | ReactNode | - |
ToolbarGroup
| Property | Description | Type | Default |
|---|---|---|---|
| children | contents of the toolbar | ReactNode | - |
| isCompact | compact ToolbarGroup has 0px gap between elements | boolean | - |
ToolbarButton
see ds-button for more props
| Property | Description | Type | Default |
|---|---|---|---|
| type | type of button | 'ghost-primary' / 'ghost' / 'custom-color-ghost' | - |
| tooltipProps | Tooltip config | TooltipProps see ds-tooltip | - |
| badgeProps | Badge config | BadgeProps see ds-badge | - |
1.1.1
7 months ago
1.1.0
7 months ago
1.0.0
7 months ago
1.1.9
5 months ago
1.1.8
5 months ago
1.1.7
5 months ago
1.1.6
6 months ago
1.1.5
6 months ago
1.1.4
6 months ago
1.1.3
7 months ago
1.1.2
7 months ago
1.1.10
5 months ago
0.2.7
8 months ago
0.2.6
8 months ago
0.2.5
8 months ago
0.2.3
8 months ago
0.2.4
8 months ago
0.2.1
8 months ago
0.2.0
9 months ago
0.2.2
8 months ago
0.1.3
9 months ago
0.1.2
9 months ago
0.1.1
10 months ago
0.1.0
10 months ago
0.0.1
10 months ago