Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (23 sloc) 821 Bytes

TopBar

See the demo component here

Usage

Below, an example of using the TopBar component:

import { TopBar, TopBarIcon } from 'mdwrapper';

const Demo = () => (
  <TopBar title={'Demo'} onClick={() => console.log('Demo')} short collapsed>
    <TopBarIcon font="print" onClick={() => console.log('Print')} />
  </TopBar>
);

Props

List of all properties for the TopBar component:

Prop Type Default Description
title string 'Default' Title
onClick function - Click Trigger

List of all properties for the TopBarIcon component:

Prop Type Default Description
font string 'bookmark' Material Design Icon Font
onClick function - Click Trigger
You can’t perform that action at this time.