Skip to content

Commit

Permalink
Merge pull request #57 from Vonder85/main
Browse files Browse the repository at this point in the history
new timePicker
  • Loading branch information
Charlie85270 authored Feb 4, 2021
2 parents 08d2c13 + f99c004 commit eb2e092
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
12 changes: 12 additions & 0 deletions components/kit/components/form/dateTimePicker/TimePicker.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React from 'react';

export const TimePicker = () => {
return (
<label className="text-gray-700" htmlFor="time">
<input
className="appearance-none border border-gray-300 w-full py-2 px-4 bg-white text-gray-700 placeholder-gray-400 rounded-lg text-base focus:outline-none focus:ring-2 focus:ring-purple-600 focus:border-transparent flex-1"
type="time"
/>
</label>
);
};
2 changes: 2 additions & 0 deletions pages/components/inputtext/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import SectionHeader from '../../../components/site/header/SectionHeader';
import InputText from '../../../components/kit/components/form/inputtext/InputText';
import InputArea from '../../../components/kit/components/form/inputtext/InputArea';
import InputGroup from '../../../components/kit/components/form/inputtext/InputGroup';
import { TimePicker } from '../../../components/kit/components/form/dateTimePicker/TimePicker';

const InputTextPage: FC = () => {
return (
Expand Down Expand Up @@ -101,6 +102,7 @@ const InputTextPage: FC = () => {
/>
<ComponentLayout title="Group" element={<InputGroup />} component={InputText} />
<ComponentLayout title="textarea" element={<InputArea />} component={InputArea} />
<ComponentLayout title="Time Picker" element={<TimePicker />} component={TimePicker} />
</AppLayout>
);
};
Expand Down

0 comments on commit eb2e092

Please sign in to comment.