@sharyn/components

4.4.0 • Public • Published

🌹 @sharyn/components

npm

This package provides components built with Material UI.

🌹 Install

yarn add @sharyn/components

🌹 Usage

Page

// @flow

import React from 'react'
import Page from '@sharyn/components/Page'

const MyCmp = () => <Page>Hello</Page>
// or
const MyCmp = () => <Page middle>Hello</Page>
// options
const MyCmp = () => <Page maxWidth={700} noPadding noPaper containerClass="" paperClass="">Hello</Page>


export default MyCmp

DrawerItem

// @flow

import React from 'react'
import HomeIcon from '@material-ui/icons/Home'
import Page from '@sharyn/components/DrawerItem'

const MyCmp = () => (
  <DrawerItem label="Hello" icon={HomeIcon} />
  <DrawerItem label="Hello without icon" />
)

export default MyCmp

Readme

Keywords

none

Package Sidebar

Install

npm i @sharyn/components

Weekly Downloads

17

Version

4.4.0

License

MIT

Unpacked Size

91.2 kB

Total Files

62

Last publish

Collaborators

  • sharyn