UNPKG

@payfit/unity-components

Version:

23 lines (22 loc) 855 B
import { DateRangePickerProps } from './DateRangePicker.js'; export type TanstackDateRangePickerProps = Omit<DateRangePickerProps, 'value' | 'defaultValue' | 'isInvalid'>; /** * `TanstackDateRangePicker` is a controlled date range picker wired to the TanStack Form field context. * It is based on the Unity `DateRangePicker` component. * * Example: * ```tsx * function ExampleField() { * const form = useTanstackUnityForm<{ period: DateRange | null }>({ validators: {} }) * return ( * <form> * <form.AppField name="period"> * {() => <TanstackDateRangePicker />} * </form.AppField> * </form> * ) * } * ``` */ declare const TanstackDateRangePicker: import('react').ForwardRefExoticComponent<TanstackDateRangePickerProps & import('react').RefAttributes<HTMLDivElement>>; export { TanstackDateRangePicker };