Skip to content

Commit

Permalink
add clear example to DateField stories
Browse files Browse the repository at this point in the history
  • Loading branch information
veej committed May 15, 2024
1 parent d15b693 commit 4a46df2
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export const SingleWithShortcuts = {
args: {
value: null,
shortcuts: [
{ label: "Clear", value: null },
{
label: "Today",
value: new Date(),
Expand Down Expand Up @@ -132,6 +133,10 @@ export const RangeWithShortcuts = {
value: null,
type: "range",
shortcuts: [
{
label: "Clear all",
value: null,
},
{
label: "This Week",
value: [startOfWeek(today), endOfWeek(today)],
Expand Down

0 comments on commit 4a46df2

Please sign in to comment.