@sharyn/components

This package provides components built with Material UI.

Usage no npm install needed!

<script type="module">
  import sharynComponents from 'https://cdn.skypack.dev/@sharyn/components';
</script>

README

🌹 @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