Skip to content

Commit 9ec6550

Browse files
adding button component
1 parent 89887b7 commit 9ec6550

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import React from 'react'
2+
import './button.style.css'
3+
4+
export const Button = ({classes='', children, type='submit'}) => (
5+
<button type={type} className={'ui-button ' + classes}>{children}</button>
6+
)
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
.add-note {
2+
color: blue;
3+
font-size: 14px;
4+
padding: 15px 40px;
5+
border-radius: 15px;
6+
box-shadow: none;
7+
border: unset;
8+
text-align: center;
9+
margin-bottom: 15px;
10+
transition:0.3s;
11+
}
12+
13+
.add-note:hover {
14+
background-color: black;
15+
color: white;
16+
cursor: pointer;
17+
}

0 commit comments

Comments
 (0)