npm

Need private packages and team management tools?Check out npm Orgs. »

@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

Keywords

none

install

npm i @sharyn/components

Downloadsweekly downloads

64

version

4.4.0

license

MIT

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability