web: Applied changes on isDisabled property of Button component
This commit is contained in:
parent
e0dfae9337
commit
787bae17dc
@ -13,7 +13,7 @@ Buttons are used for a action on a page.
|
||||
#### Usage
|
||||
|
||||
```js
|
||||
<Button primary={true} size='big' disabled={true} onClick={() => alert('Button clicked')}>Save message</Button>
|
||||
<Button primary={true} size='big' isDisabled={true} onClick={() => alert('Button clicked')}>Save message</Button>
|
||||
```
|
||||
|
||||
#### Properties
|
||||
|
@ -13,7 +13,7 @@ Base Button is used for a action on a page.
|
||||
#### Usage
|
||||
|
||||
```js
|
||||
<Button size='base' disabled={false} onClick={() => alert('Button clicked')}>OK</Button>
|
||||
<Button size='base' isDisabled={false} onClick={() => alert('Button clicked')}>OK</Button>
|
||||
```
|
||||
|
||||
#### Properties
|
||||
@ -21,7 +21,7 @@ Base Button is used for a action on a page.
|
||||
| Props | Type | Required | Values | Default | Description |
|
||||
| ------------------ | -------- | :------: | --------------------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `primary` | `bool` | - | - | - | Tells when the button should be primary |
|
||||
| `disabled` | `bool` | - | - | - | Tells when the button should present a disabled state |
|
||||
| `isDisabled` | `bool` | - | - | - | Tells when the button should present a disabled state |
|
||||
| `onClick` | `func` | ✅ | - | - | What the button will trigger when clicked |
|
||||
| `size` | `oneOf` | - | `base`, `middle`, `big`, `huge` | `base` | - |
|
||||
|
||||
|
@ -15,7 +15,7 @@ storiesOf('Components|Button', module)
|
||||
<Button
|
||||
size={select('size', sizeOptions, 'base')}
|
||||
primary={boolean('primary', true)}
|
||||
disabled={boolean('disable', false)}
|
||||
isDisabled={boolean('isDisabled', false)}
|
||||
onClick={action('clicked')}
|
||||
>
|
||||
{text('Label', 'Base button')}
|
||||
|
@ -13,7 +13,7 @@ Big Button is used for a action on a page.
|
||||
#### Usage
|
||||
|
||||
```js
|
||||
<Button size='big' disabled={false} onClick={() => alert('Button clicked')}>OK</Button>
|
||||
<Button size='big' isDisabled={false} onClick={() => alert('Button clicked')}>OK</Button>
|
||||
```
|
||||
|
||||
#### Properties
|
||||
@ -21,7 +21,7 @@ Big Button is used for a action on a page.
|
||||
| Props | Type | Required | Values | Default | Description |
|
||||
| ------------------ | -------- | :------: | --------------------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `primary` | `bool` | - | - | - | Tells when the button should be primary |
|
||||
| `disabled` | `bool` | - | - | - | Tells when the button should present a disabled state |
|
||||
| `isDisabled` | `bool` | - | - | - | Tells when the button should present a disabled state |
|
||||
| `onClick` | `func` | ✅ | - | - | What the button will trigger when clicked |
|
||||
| `size` | `oneOf` | - | `base`, `middle`, `big`, `huge` | `base` | - |
|
||||
|
||||
|
@ -15,7 +15,7 @@ storiesOf('Components|Button', module)
|
||||
<Button
|
||||
size={select('size', sizeOptions, 'big')}
|
||||
primary={boolean('primary', true)}
|
||||
disabled={boolean('disable', false)}
|
||||
isDisabled={boolean('isDisabled', false)}
|
||||
onClick={action('clicked')}
|
||||
>
|
||||
{text('Label', 'Big button')}
|
||||
|
@ -13,7 +13,7 @@ Huge Button is used for a action on a page.
|
||||
#### Usage
|
||||
|
||||
```js
|
||||
<Button size='huge' disabled={false} onClick={() => alert('Button clicked')}>OK</Button>
|
||||
<Button size='huge' isDisabled={false} onClick={() => alert('Button clicked')}>OK</Button>
|
||||
```
|
||||
|
||||
#### Properties
|
||||
@ -21,7 +21,7 @@ Huge Button is used for a action on a page.
|
||||
| Props | Type | Required | Values | Default | Description |
|
||||
| ------------------ | -------- | :------: | --------------------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `primary` | `bool` | - | - | - | Tells when the button should be primary |
|
||||
| `disabled` | `bool` | - | - | - | Tells when the button should present a disabled state |
|
||||
| `isDisabled` | `bool` | - | - | - | Tells when the button should present a disabled state |
|
||||
| `onClick` | `func` | ✅ | - | - | What the button will trigger when clicked |
|
||||
| `size` | `oneOf` | - | `base`, `middle`, `big`, `huge` | `base` | - |
|
||||
|
||||
|
@ -15,7 +15,7 @@ storiesOf('Components|Button', module)
|
||||
<Button
|
||||
size={select('size', sizeOptions, 'huge')}
|
||||
primary={boolean('primary', true)}
|
||||
disabled={boolean('disable', false)}
|
||||
isDisabled={boolean('isDisabled', false)}
|
||||
onClick={action('clicked')}
|
||||
>
|
||||
{text('Label', 'Huge button')}
|
||||
|
@ -13,7 +13,7 @@ Middle Button is used for a action on a page.
|
||||
#### Usage
|
||||
|
||||
```js
|
||||
<Button size='middle' disabled={false} onClick={() => alert('Button clicked')}>OK</Button>
|
||||
<Button size='middle' isDisabled={false} onClick={() => alert('Button clicked')}>OK</Button>
|
||||
```
|
||||
|
||||
#### Properties
|
||||
|
@ -15,7 +15,7 @@ storiesOf('Components|Button', module)
|
||||
<Button
|
||||
size={select('size', sizeOptions, 'middle')}
|
||||
primary={boolean('primary', true)}
|
||||
disabled={boolean('disable', false)}
|
||||
isDisabled={boolean('isDisabled', false)}
|
||||
onClick={action('clicked')}
|
||||
>
|
||||
{text('Label', 'Middle button')}
|
||||
|
Loading…
Reference in New Issue
Block a user