@lobehub/ui
Version:
Lobe UI is an open-source UI component library for building AIGC web apps
20 lines • 675 B
text/typescript
import { ComponentProps, MouseEvent, ReactNode, Ref } from "react";
//#region src/base-ui/Anchor/type.d.ts
interface AnchorItem {
children?: AnchorItem[];
href: string;
key: string;
title: ReactNode;
}
interface AnchorProps extends Omit<ComponentProps<'nav'>, 'children' | 'onChange' | 'onClick'> {
activeKey?: string | null;
getContainer?: () => HTMLElement | Window | null | undefined;
items: AnchorItem[];
offset?: number;
onChange?: (key: string | null) => void;
onClick?: (event: MouseEvent<HTMLAnchorElement>, item: AnchorItem) => void;
ref?: Ref<HTMLElement>;
}
//#endregion
export { AnchorItem, AnchorProps };
//# sourceMappingURL=type.d.mts.map