Usage
props
width
: ė²ķ¼ģ ėė¹ (źø°ė³øź°:550
)
heigth
: ė²ķ¼ģ ėģ“ (źø°ė³øź°:56
)
backgroundColor
: ė²ķ¼ģ ė°°ź²½ģ (źø°ė³øź°:#FFD039
)
fontColor
: ė²ķ¼ģ źøģģ (źø°ė³øź°:white
)
fontSize
: ė²ķ¼ģ źøģ ķ¬źø° (źø°ė³øź°:16px
)
example
- default ė²ķ¼
<Button>źø°ė³øė²ķ¼</Button>
- 커ģ¤ķ ė²ķ¼1
<Button width={550} height='56px' backgroundColor={yellow} fontColor={#fff} fontSize={16}> 커ģ¤ķ ė²ķ¼ </Button>
- 커ģ¤ķ ė²ķ¼2
const buttonStyle = { width: '550px', height: 56, backgroundColor= 'rgba(233, 53, 80, 1)', fontColor: 'red', fontSize: '16px' } <Button {...buttonStyle}>커ģ¤ķ ė²ķ¼</Button>
ź°ģ ķ“ģ¼ķ ģ
width
ź°ģ ė°ė¼ border-radius
ź°ģ“ ģ ķ“ģ§ėė” źµ¬ķģ“ ėģ“ģģµėė¤.width
ā„250px
āborder-radius=16px
width
<250px
āborder-radius=12px
ķė
width
ź°ģ¼ė” %
ģ ź°ģ ģėźøøģ“ ėØģź° ģģ ė ģ“ė»ź² ė°ģģ ģ¼ė” border-radius
ź°ģ ģ ķ ģ ģģź¹ ź³ ėÆ¼ģ¤ģ
ėė¤. ģėźøøģ“ ėØģė” ģ ķ“ģ§ ė²ķ¼ģ ėė¹ź°ģ styled 컓ķ¬ėķøģ
props
ė” ėź²Øė°ģģ ģ ķė ė°©ģģ¼ė” 구ķģ ģź°ķź³ ģėė° ģ“ė»ź² 구ķķ“ģ¼ķ ģ§ ź³ ėÆ¼ģ¤ģ
ėė¤.