UNPKG

@promptbook/remote-server

Version:

Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action

48 lines (47 loc) 1.34 kB
/** * Supported arrow directions. * * @private internal typing helper for `<ArrowIcon/>` */ type ArrowDirection = 'up' | 'down' | 'left' | 'right'; /** * Legacy direction aliases kept for backward compatibility. * * @private internal typing helper for `<ArrowIcon/>` */ type LegacyArrowDirection = Uppercase<ArrowDirection>; /** * Any accepted arrow direction input. * * @private internal typing helper for `<ArrowIcon/>` */ type ArrowDirectionInput = ArrowDirection | LegacyArrowDirection; /** * Props for rendering a directional arrow icon. * * @private internal props typing for `<ArrowIcon/>` */ type ArrowIconProps = { /** * Arrow pointing direction. * * Uses lowercase directions (`up`, `down`, `left`, `right`) and supports * uppercase legacy values for backward compatibility. */ readonly direction: ArrowDirectionInput; /** * Icon size in pixels. */ readonly size?: number; /** * Optional class names forwarded to the `<svg/>`. */ readonly className?: string; }; /** * Shows a simple solid triangle arrow ("▶") that can point in all four directions. * * @public exported from `@promptbook/components` */ export declare function ArrowIcon({ direction, size, className }: ArrowIconProps): import("react/jsx-runtime").JSX.Element; export {};