@jswork/rctpl-ant-radio-button
v1.0.3
Published
Antd radio button template.
Downloads
5
Readme
rctpl-ant-radio-button
Antd radio button template.
installation
npm install -S @jswork/rctpl-ant-radio-button
properties
| Name | Type | Required | Default | Description | | --------- | ------ | -------- | ------- | ------------------------------------- | | className | string | false | - | The extended className for component. | | value | object | false | null | Default value. | | onChange | func | false | noop | The change handler. |
usage
- import css
@import "~@jswork/boilerplate-react-component/dist/style.css";
// or use sass
@import "~@jswork/boilerplate-react-component/dist/style.scss";
// customize your styles:
$boilerplate-react-component-options: ()
- import js
import React from 'react';
import RctplAntRadioButton from '../@jswork/boilerplate-react-component';
import styled from 'styled-components';
const Container = styled.div`
width: 80%;
margin: 30px auto 0;
`;
export default (props: any) => {
return (
<Container>
<RctplAntRadioButton />
</Container>
);
};
license
Code released under the MIT license.