Skip to content

native-like min/max attributes? #2506

Discussion options

You must be logged in to vote
const minDate = new Date('2024-10-01');
const maxDate = new Date('2024-10-10');

<DayPicker
	mode="single"
	startMonth={new Date('2024-10-01')}
	endMonth={new Date('2024-10-10')}
	hidden={{
		before: minDate,
		after: maxDate,
	}}
			
/>

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@FezVrasta
Comment options

@oluwatunmiisheii
Comment options

@FezVrasta
Comment options

@oluwatunmiisheii
Comment options

Answer selected by FezVrasta
@FezVrasta
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants