Skip to content

Commit 1e5571d

Browse files
committed
fix: correct type inheritance in CalendarContainer props
Update CalendarContainerProps to extend HTMLAttributes<HTMLDivElement> instead of HTMLDivElement. This fixes the type definition to properly include all valid HTML attributes that can be passed to the div element, improving type safety and developer experience.
1 parent 3acee46 commit 1e5571d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/calendar_container.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import React from "react";
1+
import React, { type HTMLAttributes } from "react";
22

33
export interface CalendarContainerProps
4-
extends React.PropsWithChildren<HTMLDivElement> {
4+
extends React.PropsWithChildren<HTMLAttributes<HTMLDivElement>> {
55
showTimeSelectOnly?: boolean;
66
showTime?: boolean;
77
}

0 commit comments

Comments
 (0)