UNPKG

@assistant-ui/react

Version:

Open-source TypeScript/React library for building production-grade AI chat experiences

31 lines • 1.48 kB
import type { ActionButtonElement } from "../../utils/createActionButton.js"; import { type ComponentPropsWithoutRef } from "react"; import { Primitive } from "../../utils/Primitive.js"; export declare namespace ChainOfThoughtPrimitiveAccordionTrigger { type Element = ActionButtonElement; /** * Props for the ChainOfThoughtPrimitive.AccordionTrigger component. * Inherits all button element props and action button functionality. */ type Props = ComponentPropsWithoutRef<typeof Primitive.button>; } /** * A button component that toggles the collapsed state of the chain of thought accordion. * * This component automatically handles the toggle functionality, expanding or collapsing * the chain of thought parts when clicked. * Exposes the current disclosure state through `aria-expanded`. * * @example * ```tsx * <ChainOfThoughtPrimitive.AccordionTrigger> * Toggle Reasoning * </ChainOfThoughtPrimitive.AccordionTrigger> * ``` */ export declare const ChainOfThoughtPrimitiveAccordionTrigger: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & { asChild?: boolean | undefined; }, "ref"> & { render?: import("react").ReactElement | undefined; } & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>; //# sourceMappingURL=ChainOfThoughtAccordionTrigger.d.ts.map