1.0.2 • Published 6 years ago

@materialr/toolbar v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

MaterialR Toolbar

@materialr/toolbar

Build Status Coverage Status NSP Status semantic-release

Material Toolbar implementation for React

Installation

$ npm install --save @materialr/toolbar

Demo

A full demo is available on the MaterialR website showcasing all variants.

Components

Default export

import Toolbar from '@materialr/toolbar';

Props

PropTypeRequiredDefaultDescription
childrennodeYesN/AThe child elements to render inside the list
classNamestringNoundefinedAdditional classNames to add
fixedboolNofalseWhether the toolbar s fixed at the top of the screen
fixedLastRowOnlyboolNofalseWhether the last row is fixed at the top of the screen
flexibleenum (1/2/3/4)No1The amount of rows that the flexible toolbar spans
waterfallboolNofalseWhether this is a waterfall toolbar

Named exports

import { ToolbarIcon } from '@materialr/toolbar';

Props

PropTypeRequiredDefaultDescription
classNamestringNoundefinedAdditional classNames to add
iconstringYesN/AThe material icon to render
menuIconboolNofalseWhether the icon is the main menu icon
onClickfuncNoundefinedThe click handler for the icon
titlestringYesN/AThe title attribute for the icon element
import { ToolbarRow } from '@materialr/toolbar';

Props

PropTypeRequiredDefaultDescription
childrennodeYesN/AThe children to render within
classNamestringNoundefinedAdditional classNames to add
import { ToolbarSection } from '@materialr/toolbar';

Props

PropTypeRequiredDefaultDescription
alignEndboolNofalseWhether to align the section contents to the end
alignStartboolNofalseWhether to align the section contents to the start
childrennodeYesN/AThe children to render within
classNamestringNoundefinedAdditional classNames to add
shrinkToFitboolNofalseWhether the section should shrink to make other sections larger
import { ToolbarTitle } from '@materialr/toolbar';

Props

PropTypeRequiredDefaultDescription
childrennodeYesN/AThe children to render within
classNamestringNoundefinedAdditional classNames to add
1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago

0.0.0

6 years ago