uikit/dist/remote-ui-app-sidebar.d.ts
Mohamadzadeh 52a58e497d
All checks were successful
Build and Deploy Next.js + Nginx Docker Image / build-and-deploy (push) Successful in 54s
Build and Deploy Next.js + Nginx Docker Image / deploy (push) Successful in 6s
update Sidebar
2026-10-03 17:11:33 +03:30

35 lines
787 B
TypeScript

import type { ElementType, ReactNode } from "react";
export type AppSidebarItem = {
id?: string | number;
title: string;
mobileTitle?: 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;
};