mirror of
https://github.com/hazemKrimi/crimson-quirks-ui.git
synced 2026-05-01 18:20:28 +00:00
Update link component
This commit is contained in:
@@ -4,7 +4,17 @@ import { Wrapper } from './styles';
|
|||||||
type LinkProps = {
|
type LinkProps = {
|
||||||
href: string;
|
href: string;
|
||||||
children?: React.ReactNode | JSX.Element | string;
|
children?: React.ReactNode | JSX.Element | string;
|
||||||
color?: 'client' | 'productOwner' | 'developer' | 'admin' | string;
|
color?:
|
||||||
|
| 'client'
|
||||||
|
| 'productOwner'
|
||||||
|
| 'developer'
|
||||||
|
| 'admin'
|
||||||
|
| 'success'
|
||||||
|
| 'warning'
|
||||||
|
| 'error'
|
||||||
|
| 'black'
|
||||||
|
| 'white'
|
||||||
|
| string;
|
||||||
className?: string;
|
className?: string;
|
||||||
iconLeft?: React.SVGProps<SVGSVGElement>;
|
iconLeft?: React.SVGProps<SVGSVGElement>;
|
||||||
onClick?: () => void;
|
onClick?: () => void;
|
||||||
|
|||||||
@@ -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;
|
||||||
iconLeft?: React.SVGProps<SVGSVGElement>;
|
iconLeft?: React.SVGProps<SVGSVGElement>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user