@ws-serenity/react-button
TypeScript icon, indicating that this package has built-in type declarations

2.3.1 • Public • Published

@ws-serenity/react-button

Repository

About

Содержит компонент кнопки с иконкой и подписью

type BaseButtonProps = {
    // текст внутри компонента
    label?: string;
    // Inline Svg react component
    icon?: React.FunctionComponent<React.SVGAttributes<SVGElement>>;
}
<Button
    type={'button'}
    label={'Hello world'}
/>

export type ButtonProps = BaseButtonProps
    & Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children'>

Readme

Keywords

Package Sidebar

Install

npm i @ws-serenity/react-button

Weekly Downloads

18

Version

2.3.1

License

ISC

Unpacked Size

5.84 kB

Total Files

5

Last publish

Collaborators

  • ra.vi.an
  • gransly
  • d.duda
  • blablaprincess
  • a.manakina
  • f.ishchenko