0.6.8 • Published 2 years ago

hoondesign v0.6.8

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Install

npm install hoondesign

Demo Site

https://hoondesign.netlify.app/

Box

Usage

import { Box } from 'hoonDesign';

function App() {
  <Box id="your-id">hello world!</Box>;
}

Box props

nametypedefault
idstringnone
childrenReact.Node
widthstring'auto'
heightstring'auto'
maxWidthstring'auto'
maxHeightstring'auto'
overflowX'visible', 'hidden', 'auto', 'scroll''visible'
overflowY'visible', 'hidden', 'auto', 'scroll''visible'
marginstring'0 0 0 0'
paddingstring'0 0 0 0'
display'visible', 'none', 'flex', 'inline-flex''visible'
justifyContent'center', 'flex-start', 'flex-end', 'space-between', 'space-around', 'space-evenly''flex-start'
alignItems'center', 'flex-start', 'flex-end', 'space-between', 'space-around', 'space-evenly''flex-start'
flexDirection'row', 'column''row'
backgroundColorstring'white'
colorstring'black'
borderstring'medium none color'
borderRadiusstring'0px'
isAnimatedbooleanfalse
animatedYstring'20px'

Text

Usage

import { Text } from 'hoondesign';

function App() {
  return <Text>Hello World!</Text>;
}

Text Props

nametypedefault
childrenReact.Node
fontSize'sm', 'md', 'lg', 'xl', '2xl', '3xl', '4xl', '5xl', '6xl', '7xl', '8xl', '9xl''md'
colorstring'black'
fontWeight'normal', 'bold''normal'

Heading

Usage

import { Heading } from 'hoondesign';

function App() {
  return <Heading fontSize="xl">Hello World!</Heading>;
}

Heading Props

nametypedefault
childrenReact.Node
fontSize'sm', 'md', 'lg', 'xl', '2xl', '3xl', '4xl', '5xl', '6xl', '7xl', '8xl', '9xl''md'
colorstring'black'

Flex

Usage

import { Box, Flex } from 'hoonDesign';

function App() {
  <Flex display="flex" justifyContent="center" alignItems="center">
    <Box id="your-id">hello world!</Box>
    <Box id="your-id2">hello world2!</Box>
    <Box id="your-id3">hello world3!</Box>
  </Flex>;
}

Flex Props

nametypedefault
childrenReact.Node
widthstring'auto'
heightstring'auto'
maxWidthstring'auto'
maxHeightstring'auto'
overflowX'visible', 'hidden', 'auto', 'scroll''visible'
overflowY'visible', 'hidden', 'auto', 'scroll''visible'
marginstring'0 0 0 0'
paddingstring'0 0 0 0'
justifyContent'center', 'flex-start', 'flex-end', 'space-between', 'space-around', 'space-evenly''flex-start'
alignItems'center', 'flex-start', 'flex-end', 'space-between', 'space-around', 'space-evenly''flex-start'
flexDirection'row', 'column''row'
gapstring'0px 0px '

Button

Usage

import { Button } from 'hoondesign';

function App() {
  return <Button>submit</Button>;
}

Button Props

nametypedefault
childrenReact.Node
backgroundColorstring'black'
colorstring'white'
displaybooleantrue
isAnimatedbooleantrue

Popover

Usage

import { Popover } from 'hoondesign';

function App() {
  return <Popover>hello world!</Popover>;
}

Popover Props

nametypedefault
childrenReact.Node
backgroundColorstring'black'
colorstring'white'
isAnimatedbooleantrue

Modal

Usage

import { Modal } from 'hoondesign';

function App() {
  return <Modal title="title">hello world!</Modal>;
}

Modal Props

nametypedefault
childrenReact.Node
titlestringnone
buttonTextstring'open'
backgroundColorstring'black'
modalCloseButtonbooleantrue

RollingText

Usage

import { RollingText } from 'hoondesign'

function App(){
	return (
    	<RollingText numberValue = {123876}>
    )
}

RollingText Props

nametypedefault
numberValuenumbernone
unitstringnone
widthstring'100vw'
heightstring'100vh'
backgroundColorstring'black'
colorstring'white'
fontSize'md', 'lg''md'

Skeleton

Usage

import { Box, Skeleton } from 'hoondesign';

function App() {
  return (
    <Box display="flex" justifyContent="center" width="600px">
      <Skeleton type="rect" />
      <Skeleton type="rect" />
    </Box>
  );
}

Skeleton Props

nametypedefault
type'rect, 'circle'none
widthstring
heightstring'30px'
diameterstring'60px'
marginstring'0 0 0 0'
paddingstring'0 0 0 0'
0.6.8

2 years ago

0.6.7

2 years ago

0.4.9

2 years ago

0.6.6

2 years ago

0.4.8

2 years ago

0.3.0

2 years ago

0.5.4

2 years ago

0.3.6

2 years ago

0.5.3

2 years ago

0.3.5

2 years ago

0.5.6

2 years ago

0.3.8

2 years ago

0.5.5

2 years ago

0.3.7

2 years ago

0.5.0

2 years ago

0.3.2

2 years ago

0.3.1

2 years ago

0.5.2

2 years ago

0.3.4

2 years ago

0.5.1

2 years ago

0.3.3

2 years ago

0.5.8

2 years ago

0.5.7

2 years ago

0.3.9

2 years ago

0.5.9

2 years ago

0.6.3

2 years ago

0.4.5

2 years ago

0.2.7

2 years ago

0.6.2

2 years ago

0.4.4

2 years ago

0.2.6

2 years ago

0.6.5

2 years ago

0.4.7

2 years ago

0.2.9

2 years ago

0.6.4

2 years ago

0.4.6

2 years ago

0.2.8

2 years ago

0.4.1

2 years ago

0.2.3

2 years ago

0.4.0

2 years ago

0.6.1

2 years ago

0.4.3

2 years ago

0.2.5

2 years ago

0.6.0

2 years ago

0.4.2

2 years ago

0.2.4

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago