Skip to content

Commit

Permalink
Add example for callback
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinschopf committed Mar 8, 2021
1 parent c4e9a01 commit 7971753
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/index.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,10 @@ export const PredefinedAlwaysOpen = () => <Hours value="24/7" />;
export const PredefinedComplex = () => (
<Hours value="Mo 01:00-04:15,08:00-10:00,16:30-18:15; Tu 17:30-18:30; We 04:15-24:00; Th 00:00-11:00; Fr 02:15-02:30,06:15-09:45; Sa 01:30-01:45,05:30-10:15; Su 17:45-19:00" />
);
export const ChangeCallback = () => {
<Hours
onChange={(val: string) => {
console.log(val);
}}
/>;
};

1 comment on commit 7971753

@vercel
Copy link

@vercel vercel bot commented on 7971753 Mar 8, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.