Skip to content

Commit

Permalink
Example of using a custom class on the input element (Hacker0x01#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 b13e43c commit f9521fc
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 f9521fc

Please sign in to comment.