-
-
Notifications
You must be signed in to change notification settings - Fork 746
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add PreviousMonthButton and NextMonthButton to custom components (
#2437) feat: added PreviousMonthButton and NextMonthButton to custom components
- Loading branch information
Showing
6 changed files
with
64 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import React from "react"; | ||
|
||
/** | ||
* Render the next month button element in the calendar. | ||
* | ||
* @group Components | ||
* @see https://daypicker.dev/guides/custom-components | ||
*/ | ||
export function NextMonthButton(props: JSX.IntrinsicElements["button"]) { | ||
return <button {...props} />; | ||
} | ||
|
||
export type NextMonthButtonProps = Parameters<typeof NextMonthButton>[0]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import React from "react"; | ||
|
||
/** | ||
* Render the previous month button element in the calendar. | ||
* | ||
* @group Components | ||
* @see https://daypicker.dev/guides/custom-components | ||
*/ | ||
export function PreviousMonthButton(props: JSX.IntrinsicElements["button"]) { | ||
return <button {...props} />; | ||
} | ||
|
||
export type PreviousMonthButtonProps = Parameters< | ||
typeof PreviousMonthButton | ||
>[0]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters