parent
8afc9f560c
commit
e71057ccd0
5 changed files with 170 additions and 34 deletions
@ -0,0 +1,76 @@ |
||||
button{ |
||||
font-family: 'IRAN SANS'; |
||||
border: 0; |
||||
font-size: 0.7vw; |
||||
} |
||||
button.small{ |
||||
padding:3px 15px; |
||||
border-radius: 10px; |
||||
border:1px solid #1577F8; |
||||
} |
||||
button.medium{ |
||||
padding:10px 25px; |
||||
border-radius: 6px; |
||||
border:1px solid #1577F8; |
||||
} |
||||
button.large{ |
||||
padding:10px 45px; |
||||
border-radius: 15px; |
||||
border:3px solid #1577F8; |
||||
} |
||||
button.primary{ |
||||
border:0px; |
||||
} |
||||
button.primary.default{ |
||||
background:#1577F8 ; |
||||
color:white; |
||||
transition: all 0.2s; |
||||
} |
||||
|
||||
button.primary.default:hover{ |
||||
|
||||
color:white; |
||||
box-shadow: 0px 7px 20px rgba(120, 19, 42, 0.16); |
||||
cursor: pointer; |
||||
} |
||||
button.primary.default:active{ |
||||
background:#0D41E1 ; |
||||
color:white; |
||||
} |
||||
button.primary.disabled{ |
||||
background:#E8E8ED ; |
||||
color:white; |
||||
transition: all 0.2s; |
||||
|
||||
} |
||||
button.outlined.default{ |
||||
background: none; |
||||
color:#1577F8; |
||||
transition: all 0.2s; |
||||
} |
||||
button.outlined.default:hover{ |
||||
background: rgba(21,119,248,0.1); |
||||
color:#1577F8; |
||||
cursor:pointer; |
||||
} |
||||
button.outlined.disabled{ |
||||
background: none; |
||||
color:#E8E8ED; |
||||
border:2px solid #E8E8ED; |
||||
} |
||||
|
||||
button.text{ |
||||
border:0px; |
||||
color:#1577F8; |
||||
background: none; |
||||
transition: all 0.2s; |
||||
} |
||||
button.text:hover{ |
||||
border:0px; |
||||
color:#FDB79F; |
||||
background: none; |
||||
cursor: pointer; |
||||
} |
||||
button.text.disabled{ |
||||
color:#E8E8ED; |
||||
} |
@ -0,0 +1,43 @@ |
||||
import React from 'react'; |
||||
import './Button.css'; |
||||
|
||||
const Button = (props) =>{ |
||||
return( |
||||
<a href={props.href}> |
||||
|
||||
<button className={props.size + ' ' + props.type + ' ' + props.model} width={props.width}> |
||||
|
||||
{props.title} |
||||
|
||||
</button> |
||||
</a> |
||||
); |
||||
}; |
||||
export default Button; |
||||
|
||||
|
||||
/* |
||||
You Must Include The Title of the Button As A Parameter Of The Component |
||||
Like This: <Button title=" " /> |
||||
|
||||
------------------------------------------------------------------------ |
||||
|
||||
There Are 3 Types of Button: primary, outlined and text |
||||
You Can use them Like This: <Button type=" " /> |
||||
|
||||
------------------------------------------------------------------------ |
||||
|
||||
There Are 3 Sizes of Button: small, medium, and large |
||||
You Can Use Them Like This: <Button size=" " /> |
||||
|
||||
------------------------------------------------------------------------ |
||||
|
||||
Also There is 2 Models Of Button: default, disabled |
||||
You Can Use Them Like This: <Button model=" " /> |
||||
|
||||
------------------------------------------------------------------------ |
||||
|
||||
If You Want To Add A Link To The Button You Can Use href As a Parameter |
||||
In The Component. |
||||
You Can Use It Like This: <Button href=" " /> |
||||
*/ |
After Width: | Height: | Size: 1.9 KiB |
Loading…
Reference in new issue