1.3.1 • Published 6 years ago

quick-proto-kit v1.3.1

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

Quick Prototyping kit

NPM JavaScript Style Guide

Demo

 Quick-Proto-Kit

Documentation

https://quick-proto-kit.gitbook.io/go

Install

Quick proto Kit is based on styled-compoenents. To use it you must install all of these.

npm install --save styled-components

npm install --save quick-proto-kit

Usage

import React, { Component } from 'react'

import {View, Text, Image, Stack} from 'quick-proto-kit'

class Example extends Component {
  render () {
    return (
      <Stack horizontal mid bg={'#ffffff'} height={'200px'} >
          <View width={'100px'} height={'100px'} bg={'#f5f5f5'} />
          <View width={'100px'} height={'100px'} bg={'#efeff4'} />

      </Stack>

    )
  }
}

Documentation

Stack

Layout

PropertyMeaningSyntac
horizontalAlign all child elements horizontally<Stack horizontal />
verticalAlign all child elements vertically<Stack vertical />
centercenter all child element horizontaly<Stack center />
midcenter all child element vertically<Stack mid />
topTop Align all child elements<Stack top />
bottomBottom Align all child elements<Stack bottom />
leftLeft Align all child elements<Stack left />
rightRight Align all child elements<Stack right />

Alignment

PropertyMeaningSyntac
centercenter all child element horizontaly<Stack center />
midcenter all child element vertically<Stack mid />
topTop Align all child elements<Stack top />
bottomBottom Align all child elements<Stack bottom />
leftLeft Align all child elements<Stack left />
rightRight Align all child elements<Stack right />

View

Dimensions

Propertysyntax
Height<View height={'value'} />
Width<View width={'value'} />

Colors

Propertysyntaxdetail
Background color<View bg={'value'} />Value: '#ffffff' or 'themeColor'
Text color<View color={'value'} />Value: '#ffffff' or 'themeColor'

Shadow

Propertysyntaxdetail
Shadow<View boxShadow={'value'} />Value: 'themeShadow'

Border Radius

Propertypurposesyntax
specificAdd a border radius of '10px'<View borderRadius={'10px'} />
curvedAdd a border radius of 6px<View curved />
more-curvedAdd a border radius of 12px<View more-curved />
roundAdd a border radius of 100%, this will make a circle if the view is squre<View curved />
defaultNo border-

Text

Font Size

Parameter (case sensitive)Value
default13px
tiny11px
xs13px
s15px
m17px
l20px
xl23px
xxl27px
xxxl34px
huge45px

Font Weight

Parameter (case sensitive)Value
defaultregular
boldbold
mediummedium
lightlight

Font Align

Parameter (case sensitive)Value
defaultleft
leftleft
rightright
centercenter

Display

Parameter (case sensitive)Value
defaultblock
inlineinline

License

MIT © tushar7d

1.3.1

6 years ago

1.3.0

6 years ago

1.2.0

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.5

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago