Skip to content
React implementation of Leonardo UI
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
__tests__
dist
docs/src
scripts
src
.babelrc
.editorconfig
.eslintignore
.eslintrc.json
.gitignore
.travis.yml
CHANGELOG.md
CONTRIBUTING.md
LICENSE
README.md
jest-setup.js
jest.config.js
package-lock.json
package.json
rollup.config.docs.js
rollup.config.js

README.md

react-leonardo-ui

React implementation of Leonardo UI.

Build Status npm Coverage Status PRs Welcome

Installation

NPM

npm install --save react-leonardo-ui

Usage

ES2015

import { Button } from 'react-leonardo-ui';

CommonJS

const Button = require('react-leonardo-ui').Button;

Props passing

Properties that are not recognized by a component are passed to the root element (of most components). This removes extra abstractions and helps keeping components small and manageable.

<Button active title="My title" onClick={clickHandler}>
  My button
</Button>

In the example above, the Button component will handle the active attribute and pass title and onClick to its button element.

Contributing

You are more than welcome to contribute to the project. Just follow the instructions on CONTRIBUTING.md to setup the development environment.

You can’t perform that action at this time.