react-neat-ui
Version:
A customisable react component library focused on neat and clean approach.
28 lines (22 loc) • 885 B
TypeScript
import React from 'react';
import { Theme } from 'theme-ui';
import * as theme_ui_jsx_runtime from 'theme-ui/jsx-runtime';
/** @jsxImportSource theme-ui */
interface ButtonProps extends React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, React.AriaAttributes {
children: React.ReactNode;
variant?: string;
fill?: string;
size?: 'lg' | 'md' | 'sm';
border?: 'sharp' | 'rounded' | 'pill' | 'circle';
leftIcon?: React.ReactNode;
rightIcon?: React.ReactNode;
icon?: React.ReactNode;
}
declare const Button: React.FC<ButtonProps>;
declare const theme: Theme;
declare type themeProps = {
theme: typeof theme;
children: React.ReactNode;
};
declare const ComponentLibThemeProvider: (props: themeProps) => theme_ui_jsx_runtime.JSX.Element;
export { Button, ComponentLibThemeProvider as ThemeProvider, theme };