UNPKG

@codeworker.br/govbr-tw-react

Version:

Biblioteca de componentes React usando Tailwind CSS que implementa o Padrão Digital de Governo.

20 lines (19 loc) 987 B
import { ComponentProps } from "react"; import listVariants from "./variants"; import listItemVariants from "./item-variants"; import listItemLabelVariants from "./label-variants"; import { VariantProps } from "class-variance-authority"; interface ListProps extends ComponentProps<"ul">, VariantProps<typeof listVariants> { locatorPosition?: "top" | "bottom"; } interface ListItemProps extends ComponentProps<"li">, VariantProps<typeof listItemVariants> { } interface ListItemLabelProps extends ComponentProps<"span">, VariantProps<typeof listItemLabelVariants> { locator?: string; } declare const List: { ({ className, children, variant, locatorPosition, ref, ...props }: ListProps): import("react/jsx-runtime").JSX.Element; Item: ({ className, children, ...props }: ListItemProps) => import("react/jsx-runtime").JSX.Element; Label: ({ className, children, locator, ...props }: ListItemLabelProps) => import("react/jsx-runtime").JSX.Element; }; export default List;