Files
MattrixwvReactComponents/lib/types/NavTypes.ts

19 lines
444 B
TypeScript

import type { ComponentProps } from "react";
export type Align = "start" | "end";
export type Placement = "top" | "bottom" | "left" | "right";
export type AnchorTo = `${Placement}` | `${Placement} ${Align}`;
export interface PopoverMenuProps {
buttonContent: React.ReactNode;
anchor?: AnchorTo;
children: React.ReactNode;
}
export interface NavBarProps extends ComponentProps<"nav"> {
className?: string;
children: React.ReactNode;
}