uikit/dist/remote-ui-app-sidebar.d.ts
Mohamadzadeh 1a87e58a6c
All checks were successful
Build and Deploy Next.js + Nginx Docker Image / build-and-deploy (push) Successful in 56s
Build and Deploy Next.js + Nginx Docker Image / deploy (push) Successful in 7s
add Sidebar
2026-10-03 16:46:38 +03:30

35 lines
787 B
TypeScript

import type { ElementType, ReactNode } from "react";
export type AppSidebarItem = {
id?: string | number;
label: string;
mobileLabel?: string;
icon?: ReactNode | ElementType;
iconSvg?: string;
href?: string;
target?: string;
rel?: string;
active?: boolean;
disabled?: boolean;
hidden?: boolean;
onClick?: (item: AppSidebarItem, event: MouseEvent) => void;
};
export type RemoteAppSidebarProps = {
items?: AppSidebarItem[];
ariaLabel?: string;
dir?: "rtl" | "ltr";
children?: ReactNode;
};
type AppSidebarExitProps = {
children?: ReactNode;
label?: string;
disabled?: boolean;
onClick?: (event: MouseEvent) => void;
};
export declare const AppSidebar: ((props: RemoteAppSidebarProps) => any) & {
Exit: (props: AppSidebarExitProps) => any;
};