1.6.0 • Published 5 years ago

@dbenfouzari/modern-components v1.6.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

Modern components

modern-components is a library that gives beautiful components to be used in a React project

https://modern-components.netlify.com

CircleCI

Example

Installation

yarn add @dbenfouzari/modern-components

And start using :

import * as React from 'react';
import { Calendar } from '@dbenfouzari/modern-components';

interface ExampleState {
  value: Date;
}

class MyExample extends React.Component<{}, ExampleState> {
  state = {
    value: new Date()
  }
  
  handleChange = (nextDate: Date) => {
    this.setState({ value: nextDate });
  }

  render () {
    return (
      <div>
        <Calendar value={this.state.value} onChange={this.handleChange} />
      </div>
    );
  }
};

Clone

  • Clone this repo to your local machine using https://github.com/dbenfouzari/modern-components

Setup

yarn install
yarn start

That will show you the library