Compare commits
3 Commits
f2639f4fc8
...
fc1a845427
| Author | SHA1 | Date |
|---|---|---|
|
|
fc1a845427 | 1 month ago |
|
|
b120028817 | 1 month ago |
|
|
339e914e82 | 1 month ago |
@ -0,0 +1,13 @@
|
|||||||
|
|
||||||
|
interface Props {
|
||||||
|
children: string;
|
||||||
|
color?: 'primary' | 'secondary' | 'success';
|
||||||
|
onClick: () => void;
|
||||||
|
}
|
||||||
|
|
||||||
|
export const Button = ({ children, color='primary', onClick }: Props) => {
|
||||||
|
//const buttonType = "btn " + "btn"+"-"+{type};
|
||||||
|
return (
|
||||||
|
<button type="button" className={'btn btn-'+color} onClick={onClick}>{children}</button>
|
||||||
|
)
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue