ohlovely-ui
TypeScript icon, indicating that this package has built-in type declarations

1.2.1 • Public • Published

ohlovely-ui

Frontend lib created by Lê Văn Toàn

NPM JavaScript Style Guide

Install

npm install --save ohlovely-ui

Usage

import React, { Component } from 'react'

import { MonthPicker, DatePicker } from 'ohlovely-ui'
import 'ohlovely-ui/dist/index.css'

class Example extends Component {
  render() {
    return (
      <div>
        <DatePicker
          renderView={(inputprops, clearButtonProps) => <div><input {...inputprops} /><button {...clearButtonProps}>clear</button></div>}
          value={new Date(2022, 4, 19)}
          minDate={new Date(2022, 3, 14)}
          maxDate={new Date(2022, 11, 15)}
          clearable
          disabled={false}
        />
        <MonthPicker
          renderView={(inputprops, clearButtonProps) => <div><input {...inputprops} /><button {...clearButtonProps}>clear</button></div>}
          value={new Date(2022, 4, 19)}
          minDate={new Date(2021, 3, 14)}
          maxDate={new Date(2022, 11, 15)}
          clearable
          disabled={false}
      />
      </div>
    )
  }
}

License

MIT © vantoan2509

Package Sidebar

Install

npm i ohlovely-ui

Weekly Downloads

0

Version

1.2.1

License

MIT

Unpacked Size

159 kB

Total Files

32

Last publish

Collaborators

  • vantoan2509