-
-
Notifications
You must be signed in to change notification settings - Fork 720
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(types): deprecate Button in CustomComponents (#2439)
* chore(types): deprecate Button in CustomComponents * Update docs * Use legacy components.Button
- Loading branch information
Showing
7 changed files
with
36 additions
and
18 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
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 |
---|---|---|
@@ -1,13 +1,16 @@ | ||
import React from "react"; | ||
|
||
import { useDayPicker } from "../useDayPicker.js"; | ||
|
||
/** | ||
* 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} />; | ||
const { components } = useDayPicker(); | ||
return <components.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
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