UNPKG

@assistant-ui/react

Version:

TypeScript/React library for AI Chat

28 lines 1.16 kB
import { ActionButtonElement, ActionButtonProps } from "../../utils/createActionButton"; declare const useBranchPickerNext: () => (() => void) | null; export declare namespace BranchPickerPrimitiveNext { type Element = ActionButtonElement; /** * Props for the BranchPickerPrimitive.Next component. * Inherits all button element props and action button functionality. */ type Props = ActionButtonProps<typeof useBranchPickerNext>; } /** * A button component that navigates to the next branch in the message tree. * * This component automatically handles switching to the next available branch * and is disabled when there are no more branches to navigate to. * * @example * ```tsx * <BranchPickerPrimitive.Next> * Next → * </BranchPickerPrimitive.Next> * ``` */ export declare const BranchPickerPrimitiveNext: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & { asChild?: boolean; }, "ref"> & import("react").RefAttributes<HTMLButtonElement>>; export {}; //# sourceMappingURL=BranchPickerNext.d.ts.map