Update button component

This commit is contained in:
Hazem Krimi
2021-04-14 23:07:56 +01:00
parent 71f904e884
commit 3130485051
2 changed files with 20 additions and 2 deletions
+10 -1
View File
@@ -1,7 +1,16 @@
import { Wrapper } from './styles'; import { Wrapper } from './styles';
type ButtonProps = Omit<React.AllHTMLAttributes<HTMLButtonElement>, 'size'> & { type ButtonProps = Omit<React.AllHTMLAttributes<HTMLButtonElement>, 'size'> & {
color: 'client' | 'productOwner' | 'developer' | 'admin'; color:
| 'client'
| 'productOwner'
| 'developer'
| 'admin'
| 'success'
| 'warning'
| 'error'
| 'black'
| 'white';
size?: 'small' | 'big'; size?: 'small' | 'big';
variant?: 'primary-action' | 'secondary-action' | 'outlined' | 'text'; variant?: 'primary-action' | 'secondary-action' | 'outlined' | 'text';
iconLeft?: React.SVGProps<SVGSVGElement>; iconLeft?: React.SVGProps<SVGSVGElement>;
+10 -1
View File
@@ -1,7 +1,16 @@
import styled, { css } from 'styled-components'; import styled, { css } from 'styled-components';
type WrapperProps = { type WrapperProps = {
color: 'client' | 'productOwner' | 'developer' | 'admin'; color:
| 'client'
| 'productOwner'
| 'developer'
| 'admin'
| 'success'
| 'warning'
| 'error'
| 'black'
| 'white';
size?: 'small' | 'big'; size?: 'small' | 'big';
variant?: 'primary-action' | 'secondary-action' | 'outlined' | 'text'; variant?: 'primary-action' | 'secondary-action' | 'outlined' | 'text';
iconLeft?: React.SVGProps<SVGSVGElement>; iconLeft?: React.SVGProps<SVGSVGElement>;