0.3.0 • Published 7 years ago

blok v0.3.0

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

blok

DISCLAIMER

This is currently in the early stages of development

This guide will eventually be moved to its own website

Getting Started


npm install --save blok

Usage


Import


import { Component, Component2 } from 'blok'

Contents


  • Blok

    • Content
    • Header
  • Grid

    • Row
    • Column
  • Heading

  • Line

  • Link

  • Text

Blok


Content

NameDefaultTypeOptionsUse
colorstringblack, white, red, green, blue<Blok.Content color='blue' />
descriptionarrayCustom array<Blok.Content description={[{text: 'para one'}]} />
dividebooleantrue, false<Blok.Content divide />
headingstringCustom String<Blok.Content heading='Hello' />
kickerstringCustom string<Blok.Content kicker='World' />
paddedbooleantrue, false<Blok.Content padded />
<Blok.Content
  heading='Section One'
  kicker='The Begining'
  divide
  padded
  description={[
    {text: 'This is section one and this is a paragraph.'}
  ]}
/>

Header

NameDefaultTypeOptionsUse
color'white'stringblack, white, red, green, blue<Blok.Header color='blue' />
heading'Title'stringCustom String<Blok.Header heading='Hello' />
linkarrayCustom array<Blok.Header link={[{text: 'link1', linkRef: '#', active: true}]} />
raisedstringCustom string<Blok.Header raised />
transparentbooleantrue, false<Blok.Header transparent />
<Blok.Header
  heading='Title'
  link={[
    {text: 'link1'},
    {text: 'link2'}
  ]}
  raised 
/>

Grid


Grid

NameDefaultTypeOptionsUse
classNamestringCustom classes<Grid className='custom-class' />
colorstringblack, white, red, green, blue<Grid color='blue' />
fontstringheading, body, fancy<Grid font='heading' />
raisedbooleantrue, false<Grid raised />
sizestringtext, quote, h4, h3, h2, h1<Grid size='large' />
textAlignstringleft, middle, right, justified<Grid textAlign='middle' />

Row

NameDefaultTypeOptionsUse
classNamestringCustom classes<Grid.Row className='custom-class' />
colorstringblack, white, red, green, blue<Grid.Row color='blue' />
fontstringheading, body, fancy<Grid.Row font='heading' />
sizestringtext, quote, h4, h3, h2, h1<Grid.Row size='large' />
textAlignstringleft, middle, right, justified<Grid.Row textAlign='middle' />

Column

NameDefaultTypeOptionsUse
classNamestringCustom classes<Grid.Column className='custom-class' />
colorstringblack, white, red, green, blue<Grid.Column color='blue' />
fontstringheading, body, fancy<Grid.Column font='heading' />
sizestringtext, quote, h4, h3, h2, h1<Grid.Column size='large' />
textAlignstringleft, middle, right, justified<Grid.Column textAlign='middle' />
widthnumber1, 2, 3, 4, 5, 6, 7, 8<Grid.Column width={2} />
<Grid raised color='blue'>
  <Grid.Row className='my-row'>
    <Grid.Column width={2} textAlign='middle'>Hello</Grid.Column>
    <Grid.Column width={6} textAlign='right'>World</Grid.Column>
  <Grid.Row>
</Grid>

Heading


Heading

NameDefaultTypeOptionsUse
classNamestringCustom classes<Heading className='custom-class' />
fontstringheading, body, fancy<Heading font='heading' />
sizestringtext, quote, h4, h3, h2, h1<Heading size='large' />
tagh1stringp, h1, h2, h3, h4, h5, h6<Heading tag='h3' />
textstringCustom string<Heading text='Hello World' />
textAlignstringCustom string<Heading text='Hello World' />
<Heading font='body' text='Hello World' />

Line


Line

NameDefaultTypeOptionsUse
smallbooleantrue, false<Line small />
<Line small />

Link


Link

NameDefaultTypeOptionsUse
activebooleantrue, false<Link active />
classNamestringCustom classes<Link className='custom-class' />
colorstringblack, white, red, green, blue<Link color='blue' />
fontstringheading, body, fancy<Link font='heading' />
linkRefstringCustom href<Link linkRef='www.website.com' />
sizestringtext, quote, h4, h3, h2, h1<Link size='large' />
textstringCustom string<Link text='Link to Website' />
<Link linkRef='www.website.com' text='Website' active />

Text


Text

NameDefaultTypeOptionsUse
classNamestringCustom classes<Text className='custom-class' />
textstringCustom string<Text text='Hello World' />
<Text text='This is my custom text' />
0.3.0

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago

1.0.0

7 years ago