Skip to content

MadsFrost/umbrella-ui

Repository files navigation

☂️ Umbrella-UI

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

Typescript Support

The library focuses on having TypeScript support and make use of well-defined properties.

Installation

NPM

npm install umbrella-ui --save

Yarn

yarn add umbrella-ui

Example Usage

App Root

Import the library css file to the app root:

import 'umbrella-ui/dist/tailwind.css';

Component usage

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;

Components

Control

  • Button with variants
  • Card with children
  • Input
  • Toggle

Layout

  • Flex container
  • Grid with GridElements

Typography

  • Keyboard shortcut visual

Loading/Placeholders

  • Example loaders such as DNA loader and other cool animations.
  • Progress Bar
  • Skeleton Loader

About

A UI library built with TailwindCSS and documented in Storybook.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published