File size: 507 Bytes
cf86710 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | import React, { type HTMLAttributes, type Ref } from "react";
/**
* Render the root element of the calendar.
*
* @group Components
* @see https://daypicker.dev/guides/custom-components
*/
export function Root(
props: {
/** Ref for the root element, used when `animate` is `true`. */
rootRef?: Ref<HTMLDivElement>;
} & HTMLAttributes<HTMLDivElement>,
) {
const { rootRef, ...rest } = props;
return <div {...rest} ref={rootRef} />;
}
export type RootProps = Parameters<typeof Root>[0];
|