Update text component

This commit is contained in:
Hazem Krimi
2021-04-14 23:08:40 +01:00
parent f5a64651c5
commit f37fa91c04
2 changed files with 22 additions and 2 deletions
+11 -1
View File
@@ -4,7 +4,17 @@ type TextProps = {
children?: React.ReactNode | JSX.Element | string; children?: React.ReactNode | JSX.Element | string;
className?: string; className?: string;
variant?: 'display' | 'headline' | 'title' | 'subheader' | 'body' | 'caption'; variant?: 'display' | 'headline' | 'title' | 'subheader' | 'body' | 'caption';
color?: 'client' | 'productOwner' | 'developer' | 'admin' | string; color?:
| 'client'
| 'productOwner'
| 'developer'
| 'admin'
| 'success'
| 'warning'
| 'error'
| 'black'
| 'white'
| string;
align?: 'inherit' | 'left' | 'center' | 'right' | 'justify'; align?: 'inherit' | 'left' | 'center' | 'right' | 'justify';
display?: 'initial' | 'block' | 'inline'; display?: 'initial' | 'block' | 'inline';
gutterBottom?: boolean; gutterBottom?: boolean;
+11 -1
View File
@@ -1,7 +1,17 @@
import styled, { css } from 'styled-components'; import styled, { css } from 'styled-components';
type WrapperProps = { type WrapperProps = {
color?: 'client' | 'productOwner' | 'developer' | 'admin' | string; color?:
| 'client'
| 'productOwner'
| 'developer'
| 'admin'
| 'success'
| 'warning'
| 'error'
| 'black'
| 'white'
| string;
align?: 'inherit' | 'left' | 'center' | 'right' | 'justify'; align?: 'inherit' | 'left' | 'center' | 'right' | 'justify';
display?: 'initial' | 'block' | 'inline'; display?: 'initial' | 'block' | 'inline';
gutterBottom?: boolean; gutterBottom?: boolean;