*nix Programming Mammals

    react-float-button

    0.1.2 • Public • Published

    NPM

    react-float-button

    react-float-button is a stuff make your button float.

    Demo

    Alt Text

    How to use

    npm i react-float-button --save
    
    import FloatGroup from 'react-float-button';
    
    <FloatGroup style={{ margin: '0 10px' }} margin={80} delay={0.02}>
        <Button>You can put any children under FloatGroup</Button>
        <Button>Hello, world!</Button>
    </FloatGroup>
    

    API

    Name Type Default Description
    margin number 50 The margin between each children
    style object {} Simple style
    delay number 0.03 Transition delay of each child

    Keywords

    none

    Install

    npm i react-float-button

    DownloadsWeekly Downloads

    109

    Version

    0.1.2

    License

    MIT

    Last publish

    Collaborators

    • stanleybz