ASC.Web.Components: radio-button-group: added fontSize, fontWeight props
This commit is contained in:
parent
1513610fe5
commit
beaaeb08ad
@ -35,3 +35,5 @@ import { RadioButtonGroup } from "asc-web-components";
|
||||
| `spacing` | `string` | - | - | `15px` | Margin between radiobutton. If orientation `horizontal`, it is `margin-left`(apply for all radiobuttons, except first), if orientation `vertical`, it is `margin-bottom`(apply for all radiobuttons, except last) |
|
||||
| `style` | `obj`, `array` | - | - | - | Accepts css style |
|
||||
| `width` | `string` | - | - | `100%` | Width of RadioButtonGroup container |
|
||||
| `fontSize` | `string` | - | - | - | Font size of link |
|
||||
| `fontWeight` |`number, string`| - | - | - | Font weight of link |
|
||||
|
@ -61,6 +61,8 @@ class RadioButtonGroup extends React.Component {
|
||||
|
||||
isDisabled={this.props.isDisabled || option.disabled}
|
||||
label={option.label}
|
||||
fontSize={this.props.fontSize}
|
||||
fontWeight={this.props.fontWeight}
|
||||
spacing={this.props.spacing}
|
||||
orientation={this.props.orientation}
|
||||
/>
|
||||
@ -89,6 +91,8 @@ RadioButtonGroup.propTypes = {
|
||||
style: PropTypes.oneOfType([PropTypes.object, PropTypes.array]),
|
||||
orientation: PropTypes.oneOf(['horizontal', 'vertical']),
|
||||
width: PropTypes.string,
|
||||
fontSize: PropTypes.string,
|
||||
fontWeight: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
||||
}
|
||||
|
||||
RadioButtonGroup.defaultProps = {
|
||||
|
@ -54,6 +54,8 @@ storiesOf('Components|Input', module)
|
||||
orientation={select('orientation', orientation, 'horizontal')}
|
||||
width={text('width', '100%')}
|
||||
isDisabled={boolean('isDisabled', false)}
|
||||
fontSize={text('fontSize', '13px')}
|
||||
fontWeight={text('fontWeight', '400')}
|
||||
selected={values[0]}
|
||||
spacing={text('spacing', '15px')}
|
||||
name={text('name', 'group')}
|
||||
|
Loading…
Reference in New Issue
Block a user