Congrats! You just saved yourself hours of work by bootstrapping this library. This is mostly a personal project focusing on half-headless and half-designed components and other nice and friendly libraries.
This setup is meant for easy development with use of classNames to change styling (semi-headless). This library also contains other useful libraries such as:
react-hook-form
,@headlessui/react
,react-loading-skeleton
,react-loader-spinner
,recharts
.
If you’re new to TypeScript and React, checkout this handy cheatsheet
The library focuses on having TypeScript support and make use of well-defined properties.
NPM
npm install umbrella-ui --save
Yarn
yarn add umbrella-ui
Import the library css file to the app root:
import 'umbrella-ui/dist/tailwind.css';
Example of <Card>
component.
import { Card } from 'umbrella-ui';
const CustomHeader = () => {
return (
<div>Hi, I'm a card header prop.</div>
)
}
const CustomFooter = () => {
return (
<div>Hi I'm a card footer prop.</div>
)
}
const CustomCard = () => {
return (
<Card header={<CustomHeader />} footer={<CustomFooter />}>
Hi I'm the content in the card
</Card>
)
}
export default CustomCard;
- Button with variants
- Card with children
- Input
- Toggle
- Flex container
- Grid with GridElements
- Keyboard shortcut visual
- Example loaders such as DNA loader and other cool animations.
- Progress Bar
- Skeleton Loader