@codeworker.br/govbr-tw-react
Version:
Biblioteca de componentes React usando Tailwind CSS que implementa o Padrão Digital de Governo.
24 lines (23 loc) • 750 B
TypeScript
import { ComponentProps } from "react";
interface MenuItem {
title?: any;
subtitle?: any;
link?: string;
subLinks?: MenuItem[];
type?: string;
}
interface HeaderProps extends ComponentProps<"header"> {
logo?: any;
locator?: string[];
headerTitle?: string;
login?: boolean;
loginLabel?: string;
searchInput?: any;
menu?: MenuItem[];
}
declare const Header: {
({ logo, children, locator, headerTitle, login, loginLabel, searchInput, menu, }: HeaderProps): import("react/jsx-runtime").JSX.Element;
PrimaryMenu: ({ children, className }: any) => import("react/jsx-runtime").JSX.Element;
IconMenu: ({ children, className }: any) => import("react/jsx-runtime").JSX.Element;
};
export { Header };