1.0.0-alpha.61 • Published 4 years ago

mediatr-universe v1.0.0-alpha.61

Weekly downloads
2
License
ISC
Repository
github
Last release
4 years ago

Any Colour You Like

alt

:warning: THIS PROJECT IS UNDER DEVELOPMENT: we don't recommend its use in production yet!

NPM version

DOCUMENTATION HERE

Why?

  • Write less do more, without miss flexiblity
  • This Library has a proporse to be simple of use
  • Who uses doesn't need write a custom css for simple custom or position

How to Install

# NPM
npm i universe-ui

# YARN
yarn add universe-ui

Configure

Routing

If you use any Router like react-router you can do setup below to use Routing in your components

import { Link } from 'universe-ui';
import { Link as RouterLink } from 'react-router-dom';

Link.initialize(RouterLink);

// and after

<Link to="path" /> // render as Router Link
<Button to="path" /> // render as Router Link
<Button href="path" /> // render as normal anchor
  

Icons

This Library uses FortAwesome to render icons and you need to specify which you want in you index, App or whatever file

import { library } from '@fortawesome/fontawesome-svg-core'
import { faPlus } from '@fortawesome/free-solid-svg-icons'

library.add(faPlus)

// or if you want all free solid svg icons

import { fas } from '@fortawesome/free-solid-svg-icons'
library.add(fas)