UNPKG

cherry-styled-components

Version:

Cherry is a design system for the modern web. Designed in Figma, built in React using Typescript.

16 lines (15 loc) 819 B
import { default as React } from 'react'; import { Theme } from './utils'; export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> { children?: React.ReactNode; $variant?: "primary" | "secondary" | "tertiary"; $size?: "default" | "big" | "small"; $outline?: boolean; $fullWidth?: boolean; $icon?: React.ReactNode; $iconPosition?: "left" | "right"; $error?: boolean; } export declare const buttonStyles: (theme: Theme, $variant?: "primary" | "secondary" | "tertiary", $size?: "default" | "big" | "small", $outline?: boolean, $fullWidth?: boolean, $error?: boolean, disabled?: boolean) => import('styled-components').RuleSet<object>; declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>; export { Button };