UNPKG

@codeworker.br/govbr-tw-react

Version:

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

21 lines (20 loc) 1.22 kB
import type { ComponentProps, ComponentPropsWithoutRef, ReactNode } from "react"; import Input from "../Input"; import { Button } from "../Button"; type InputProps = ComponentProps<typeof Input>; type ButtonProps = ComponentProps<typeof Button>; interface GroupOptionsProps extends ComponentPropsWithoutRef<"div">, Pick<InputProps, "hint" | "density"> { children: ReactNode; pageSize?: number; filterPlaceholder?: string; emptyMessage?: string; searchInputProps?: Omit<InputProps, "value" | "onChange" | "hint" | "density">; previousButtonProps?: Omit<ButtonProps, "onClick" | "disabled">; nextButtonProps?: Omit<ButtonProps, "onClick" | "disabled">; clearButtonProps?: Omit<ButtonProps, "onClick" | "disabled">; clearable?: boolean; clearSelectionButtonProps?: Omit<ButtonProps, "onClick" | "disabled">; clearSelection?: boolean; } declare const GroupOptions: ({ children, pageSize, filterPlaceholder, emptyMessage, className, hint, density, searchInputProps, previousButtonProps, nextButtonProps, clearButtonProps, clearable, clearSelectionButtonProps, clearSelection, ...props }: GroupOptionsProps) => import("react/jsx-runtime").JSX.Element; export default GroupOptions;