1.0.10 • Published 4 years ago

@jswork/react-radio-group v1.0.10

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

react-radio-group

Abstract radio component for react.

version license size download

installation

npm install -S @jswork/react-radio-group

properties

NameTypeRequiredDefaultDescription
classNamestringfalse-The extended className for component.
valueobjectfalsenullDefault value.
onChangefuncfalsenoopThe change handler.

usage

  1. 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: ()
  2. import js

    import React from 'react';
    import ReactRadioGroup 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>
          <ReactRadioGroup />
        </Container>
      );
    };

license

Code released under the MIT license.

1.0.9

4 years ago

1.0.10

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.3

4 years ago

1.0.0

4 years ago