0.6.8 • Published 3 years ago
hoondesign v0.6.8
Install
npm install hoondesignDemo Site
https://hoondesign.netlify.app/
Box
Usage
import { Box } from 'hoonDesign';
function App() {
<Box id="your-id">hello world!</Box>;
}Box props
| name | type | default |
|---|---|---|
| id | string | none |
| children | React.Node | |
| width | string | 'auto' |
| height | string | 'auto' |
| maxWidth | string | 'auto' |
| maxHeight | string | 'auto' |
| overflowX | 'visible', 'hidden', 'auto', 'scroll' | 'visible' |
| overflowY | 'visible', 'hidden', 'auto', 'scroll' | 'visible' |
| margin | string | '0 0 0 0' |
| padding | string | '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' |
| backgroundColor | string | 'white' |
| color | string | 'black' |
| border | string | 'medium none color' |
| borderRadius | string | '0px' |
| isAnimated | boolean | false |
| animatedY | string | '20px' |
Text
Usage
import { Text } from 'hoondesign';
function App() {
return <Text>Hello World!</Text>;
}Text Props
| name | type | default |
|---|---|---|
| children | React.Node | |
| fontSize | 'sm', 'md', 'lg', 'xl', '2xl', '3xl', '4xl', '5xl', '6xl', '7xl', '8xl', '9xl' | 'md' |
| color | string | 'black' |
| fontWeight | 'normal', 'bold' | 'normal' |
Heading
Usage
import { Heading } from 'hoondesign';
function App() {
return <Heading fontSize="xl">Hello World!</Heading>;
}Heading Props
| name | type | default |
|---|---|---|
| children | React.Node | |
| fontSize | 'sm', 'md', 'lg', 'xl', '2xl', '3xl', '4xl', '5xl', '6xl', '7xl', '8xl', '9xl' | 'md' |
| color | string | '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
| name | type | default |
|---|---|---|
| children | React.Node | |
| width | string | 'auto' |
| height | string | 'auto' |
| maxWidth | string | 'auto' |
| maxHeight | string | 'auto' |
| overflowX | 'visible', 'hidden', 'auto', 'scroll' | 'visible' |
| overflowY | 'visible', 'hidden', 'auto', 'scroll' | 'visible' |
| margin | string | '0 0 0 0' |
| padding | string | '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' |
| gap | string | '0px 0px ' |
Button
Usage
import { Button } from 'hoondesign';
function App() {
return <Button>submit</Button>;
}Button Props
| name | type | default |
|---|---|---|
| children | React.Node | |
| backgroundColor | string | 'black' |
| color | string | 'white' |
| display | boolean | true |
| isAnimated | boolean | true |
Popover
Usage
import { Popover } from 'hoondesign';
function App() {
return <Popover>hello world!</Popover>;
}Popover Props
| name | type | default |
|---|---|---|
| children | React.Node | |
| backgroundColor | string | 'black' |
| color | string | 'white' |
| isAnimated | boolean | true |
Modal
Usage
import { Modal } from 'hoondesign';
function App() {
return <Modal title="title">hello world!</Modal>;
}Modal Props
| name | type | default |
|---|---|---|
| children | React.Node | |
| title | string | none |
| buttonText | string | 'open' |
| backgroundColor | string | 'black' |
| modalCloseButton | boolean | true |
RollingText
Usage
import { RollingText } from 'hoondesign'
function App(){
return (
<RollingText numberValue = {123876}>
)
}RollingText Props
| name | type | default |
|---|---|---|
| numberValue | number | none |
| unit | string | none |
| width | string | '100vw' |
| height | string | '100vh' |
| backgroundColor | string | 'black' |
| color | string | '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
| name | type | default |
|---|---|---|
| type | 'rect, 'circle' | none |
| width | string | |
| height | string | '30px' |
| diameter | string | '60px' |
| margin | string | '0 0 0 0' |
| padding | string | '0 0 0 0' |
0.6.8
3 years ago
0.6.7
3 years ago
0.4.9
3 years ago
0.6.6
3 years ago
0.4.8
3 years ago
0.3.0
3 years ago
0.5.4
3 years ago
0.3.6
3 years ago
0.5.3
3 years ago
0.3.5
3 years ago
0.5.6
3 years ago
0.3.8
3 years ago
0.5.5
3 years ago
0.3.7
3 years ago
0.5.0
3 years ago
0.3.2
3 years ago
0.3.1
3 years ago
0.5.2
3 years ago
0.3.4
3 years ago
0.5.1
3 years ago
0.3.3
3 years ago
0.5.8
3 years ago
0.5.7
3 years ago
0.3.9
3 years ago
0.5.9
3 years ago
0.6.3
3 years ago
0.4.5
3 years ago
0.2.7
3 years ago
0.6.2
3 years ago
0.4.4
3 years ago
0.2.6
3 years ago
0.6.5
3 years ago
0.4.7
3 years ago
0.2.9
3 years ago
0.6.4
3 years ago
0.4.6
3 years ago
0.2.8
3 years ago
0.4.1
3 years ago
0.2.3
3 years ago
0.4.0
3 years ago
0.6.1
3 years ago
0.4.3
3 years ago
0.2.5
3 years ago
0.6.0
3 years ago
0.4.2
3 years ago
0.2.4
3 years ago
0.2.2
4 years ago
0.2.1
4 years ago
0.2.0
4 years ago
0.1.8
4 years ago
0.1.7
4 years ago
0.1.6
4 years ago
0.1.5
4 years ago
0.1.4
4 years ago
0.1.3
4 years ago
0.1.2
4 years ago
0.1.1
4 years ago
0.1.0
4 years ago