@logo-rn/logo-date-time-edit
v0.2.6
Published
<LogoDateTimeEdit/> allows user to select the date and time.
Downloads
8
Readme
@logo-rn/logo-date-time-edit
allows user to select the date and time.
Installation
Install the component:
npm i @logo-rn/logo-date-time-edit -s
Usage
Once installed, import the component in your application:
import {LogoDateTimeEdit} from '@logo-rn/logo-date-time-edit';
const [date, setDate] = React.useState(null);
const [time, setTime] = React.useState(null);
<LogoDateTimeEdit
id="datetime"
time={time}
setTime={setTime}
mode="DateTime"
lang={lang}
dateTime={date}
setDate={(date: any) => setDate(date)}
/>