0.14.0 • Published 2 years ago

@istvan.xyz/ui v0.14.0

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

UI

This is a UI component library that meant to be a starting point for creating simple React applications with a descent styling.

The original concept was to just have a simple wrapper around Bootstrap, unfortunately Bootstrap has a lot of baggage and does not make extensive use of modern CSS features.

Features include:

  • lightweight
  • built with modern CSS features like flex-box and grids
  • support for dark mode
  • ability to customize via CSS and CSS variables
  • separate files per component, you only "pay" for the components you actually import

Getting started

In the entry point import the default styles.

import '@istvan.xyz/ui/style.css';

Optionally import the page style which applies the style to the whole page:

import '@istvan.xyz/ui/page.css';

Add the following into the body tag after the React "root" element to support modals:

<div id="modals"></div>

This is where all modals will be portal-ed.

import Button from '@istvan.xyz/ui/Button';

const MyComponent = () => {
    return (
        <Button
            onPress={() => {
                alert('click');
            }}
        >
            Click me
        </Button>
    );
};

export default MyComponent;

Add the following dependencies for icon support:

npm install --save @fortawesome/fontawesome-svg-core
npm install --save @fortawesome/free-solid-svg-icons
npm install --save @fortawesome/react-fontawesome
0.14.0

2 years ago

0.13.0

2 years ago

0.9.8

2 years ago

0.9.7

2 years ago

0.9.4

2 years ago

0.9.3

2 years ago

0.9.6

2 years ago

0.9.5

2 years ago

0.11.0

2 years ago

0.10.1

2 years ago

0.11.1

2 years ago

0.11.2

2 years ago

0.11.3

2 years ago

0.10.0

2 years ago

0.9.2

2 years ago

0.3.0

2 years ago

0.9.0

2 years ago

0.8.0

2 years ago

0.6.2

2 years ago

0.9.1

2 years ago

0.5.0

2 years ago

0.4.1

2 years ago

0.3.2

2 years ago

0.4.0

2 years ago

0.3.1

2 years ago

0.7.0

2 years ago

0.6.1

2 years ago

0.6.0

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.2

2 years ago