retabler
Version:
React Component library via Tabler
33 lines (32 loc) • 1.19 kB
TypeScript
import React from "react";
import { Color, Variant } from "../common";
export interface ListProps {
className?: string;
children: React.ReactNode;
}
export declare type Size = "sm" | "md" | "lg";
interface ButtonProps {
className?: string;
children?: React.ReactNode;
size?: Size;
outline?: boolean;
link?: boolean;
icon?: boolean;
block?: boolean;
disabled?: boolean;
color?: Color | "white";
variant?: Variant | "link" | "light" | "dark";
square?: boolean;
pill?: boolean;
loading?: boolean;
social?: string;
ghost?: boolean;
}
export declare const Buttons: {
(): void;
Anchor: React.ForwardRefExoticComponent<ButtonProps & React.AnchorHTMLAttributes<HTMLElement> & React.RefAttributes<HTMLAnchorElement>>;
Button: React.ForwardRefExoticComponent<ButtonProps & React.ButtonHTMLAttributes<HTMLElement> & React.RefAttributes<HTMLButtonElement>>;
Input: React.ForwardRefExoticComponent<ButtonProps & React.InputHTMLAttributes<HTMLElement> & React.RefAttributes<HTMLInputElement>>;
List: ({ className, children }: ListProps) => JSX.Element;
};
export default Buttons;