Skip to content

Commit

Permalink
Example of using a custom class on the input element (#2048)
Browse files Browse the repository at this point in the history
This was previously a duplicate of the "Custom day class name" example.
  • Loading branch information
M-Garrett authored Feb 10, 2020
1 parent fb035ee commit cf1902a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions docs-site/src/examples/customClassName.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
<DatePicker
selected={startDate}
onChange={date => setStartDate(date)}
dayClassName={date =>
getDate(date) < Math.random() * 31 ? "random" : undefined
}
className="red-border"
/>
);
};

0 comments on commit cf1902a

Please sign in to comment.