1.0.0 • Published 4 years ago
picker-time v1.0.0
picker-time
A simple React component, initially developed to create a schedule time table but you can use it for other purposes.
How to use ?
import React from 'react';
import { render } from 'react-dom';
import PickerTime from 'picker-time';
const items = [
{
id: '1',
text: '10:00',
onClick: () => {
alert('10:00');
}
},
{
id: '2',
text: '11:00',
onClick: () => {
alert('10:00');
}
},
{
id: '3',
text: '12:00',
onClick: () => {
alert('10:00');
}
}
];
const Demo = () => (
<>
<h1>picker-time Demo</h1>
<PickerTime items={items} width={500} />
</>
);
1.0.0
4 years ago