dgz-ui-shared
Version:
Custom ui library using React.js, Shadcn/ui, TailwindCSS, Typescript, dgz-ui library
16 lines • 537 B
TypeScript
import type { ReactNode } from 'react';
export interface ActionInterface {
label: ReactNode;
onClick: () => void;
}
export interface ActionsProps {
actions: ActionInterface[];
}
/**
* Actions renders a dropdown menu with a list of action items.
*
* @param props.actions - Array of actions with label and onClick handler.
* @returns React element rendering the actions dropdown.
*/
export declare const Actions: ({ actions }: ActionsProps) => import("react/jsx-runtime").JSX.Element;
//# sourceMappingURL=Actions.d.ts.map