standard-components

1.0.0-2 • Public • Published

Standard Components

A reference implementation of Standard Components

standard-components

npm i standard-components
import React from 'react'
import {
  Box,
  Flex,
  Text,
  Heading,
  Image,
  BackgroundImage,
  Button,
  Link
} from 'standard-components'

const App = props => (
  <Box>
    <BackgroundImage
      px={3}
      py={4}
      backgroundImage='hero.jpg'>
      <Heading is='h1'>Hello Standard</Heading>
      <Button>
        Beep
      </Button>
    </BackgroundImage>
    <Flex
      px={3}
      py={4}
      flexWrap={[ 'wrap', 'nowrap' ]}
      alignItems='center'>
      <Box width={[ 1, 128 ]}>
        <Image src='kitten.png' />
      </Box>
      <Box width={1}>
        <Heading>Meow</Heading>
        <Text>
          Look at <Link href='/cat'>this cat</Link>
        </Text>
      </Box>
    </Flex>
  </Box>
)

Readme

Keywords

none

Package Sidebar

Install

npm i standard-components

Weekly Downloads

0

Version

1.0.0-2

License

MIT

Unpacked Size

5.06 kB

Total Files

3

Last publish

Collaborators

  • jxnblk