UNPKG

copper-ui

Version:

Modern React UI components library with TypeScript support, built on top of Ant Design

40 lines 1.49 kB
import { ButtonHTMLAttributes, CSSProperties, Dispatch, HTMLAttributes, ReactNode, SetStateAction } from '../../../../node_modules/.pnpm/react@19.1.1/node_modules/react'; export type AppShellState = "expanded" | "collapsed"; export type AppShellSide = "left" | "right"; export type AppShellPersistenceAdapter = { read?: () => boolean | undefined; write?: (open: boolean) => void; }; export type AppShellProviderProps = Omit<HTMLAttributes<HTMLDivElement>, "onChange"> & { children: ReactNode; defaultOpen?: boolean; open?: boolean; onOpenChange?: (open: boolean) => void; keyboardShortcut?: string | null; sidebarWidth?: string; width?: string; collapsedWidth?: string; persistenceAdapter?: AppShellPersistenceAdapter; }; export type AppShellContextValue = { open: boolean; state: AppShellState; width: string; collapsedWidth: string; setOpen: Dispatch<SetStateAction<boolean>>; toggleOpen: () => void; }; export type AppShellStyleOptions = { sidebarWidth?: string; width?: string; collapsedWidth?: string; style?: CSSProperties; }; export type AppShellLayoutProps = HTMLAttributes<HTMLDivElement> & { sidebar?: ReactNode; side?: AppShellSide; }; export type SidebarInsetProps = HTMLAttributes<HTMLElement>; export type SidebarPrimitiveProps = HTMLAttributes<HTMLDivElement>; export type SidebarRailProps = ButtonHTMLAttributes<HTMLButtonElement>; //# sourceMappingURL=app-shell.types.d.ts.map