React components
A collection of react components, hooks and style utilities to build web applications.
Installation
$ yarn install @untile/react-components
Usage
Components
import {
BackgroundImage,
Box,
Button,
Collapse,
Container,
Fill,
GlobalStyle,
Image,
RawHtml,
Svg,
Type
} from '@untile/react-components';
Hooks
import {
useBodyScroll,
useBreakpoint,
useMediaQuery
} from '@untile/react-components/dist/hooks';
Styles
import {
color,
columnWidth,
createTheme,
darken,
lighten,
media,
setFontStyle,
setStyledProps,
states,
svgBackground,
transparentize,
units
} from '@untile/react-components/dist/styles';
Utils
import {
canUseDOM,
createReactPortal,
isExternalUrl,
isProduction,
normalizeNewLine,
regexes
} from '@untile/react-components/dist/utils';
Storybook
To see all the specifications of the components, hooks and utils and how to use,
run the storybook
.
$ yarn storybook
Releases
Be sure to have configured NPM_TOKEN
in your globals.
npm version [<new version> | major | minor | patch] -m "Release %s"
git push origin master && git push --tags