@codeworker.br/govbr-tw-react
Version:
Biblioteca de componentes React usando Tailwind CSS que implementa o Padrão Digital de Governo.
32 lines (31 loc) • 1.1 kB
TypeScript
import React, { ReactNode } from "react";
interface PersonaProps extends React.HTMLAttributes<HTMLDivElement> {
}
interface PersonaAvatarProps {
children: ReactNode;
className?: string;
}
interface PersonaInfoProps extends React.HTMLAttributes<HTMLDivElement> {
primaryText: string;
secondaryText?: string;
}
interface PersonaActionProps {
children: ReactNode;
className?: string;
}
declare const Persona: React.ForwardRefExoticComponent<PersonaProps & React.RefAttributes<HTMLDivElement>> & {
Avatar: {
({ children, className }: PersonaAvatarProps): import("react/jsx-runtime").JSX.Element;
displayName: string;
};
Info: {
({ className, primaryText, secondaryText, children, ...props }: PersonaInfoProps): import("react/jsx-runtime").JSX.Element;
displayName: string;
};
Action: {
({ children, className }: PersonaActionProps): import("react/jsx-runtime").JSX.Element;
displayName: string;
};
};
export { Persona };
export type { PersonaProps, PersonaAvatarProps, PersonaInfoProps, PersonaActionProps };