0.7.82 • Published 4 years ago

react-c2c-ui v0.7.82

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

C2C-UI

React UI kits with styled-components & typescript

Description

This is a beta version library. It might have no problem to use. But It might have cross-browsing issues and some bugs. It will be fixed.

Installation

// npm
npm install react-c2c-ui

// yarn
yarn add react-c2c-ui

Usage

import React from 'react';
import ReactDOM from 'react-dom';
import {Button} from 'react-c2c-ui';

function App() {
    return (
        <Button theme="secondary">
            Hello World
        </Button>
    );
}

ReactDOM.render(<App />, document.querySelector('#app'));

Updated the Select component(0.7.7)

  • add typeable options (typeable, typeablePlaceholder)
  • add up position of listbox render: depends on Select's position of screen You can check this in Docs page

Changed props of Popup component

Props of Popup are changed from 0.7.3 version. Removed onClickTrigger, onClose props and added setTarget.

    ...
    const [popupTarget, setPopupTarget] = useState("");
    return (
        <div>
            <Popup 
                ... // required props and other props you want
                name={"popup1"}
                setTarget={(target:string)=>{
                    // Add code lines that can change `target` value
                    setPopupTarget(target);
                }}
                target={popupTarget}
            />
            <Popup 
                ... // required props and other props you want
                name={"popup2"}
                setTarget={(target:string)=>{
                    // Add code lines that can change `target` value
                    setPopupTarget(target);
                }}
                target={popupTarget}
            />
        </div>
    )

Deleted Dropdown, DropdownMulti

The Dropdown and DropdownMulti are not able to use from 0.7.0 version. Please use the Select component instead of the Dropdown and DropdownMulti.

    /** Same as Dropdown */ 
    <Select 
        ... // required props and other props you want
        multiple={false} // or skip this prop
    />
    
    /** Same as DropdownMulti */ 
    <Select 
        ... // required props and other props you want
        multiple // or multiple={true}
    />

Docs

Check the Examples and Docs made of storybook

License

This project is licensed under the terms of the MIT license.

0.7.82

4 years ago

0.7.81

4 years ago

0.7.8

4 years ago

0.7.72

4 years ago

0.7.71

4 years ago

0.7.7

4 years ago

0.7.6

4 years ago

0.7.52

4 years ago

0.7.51

4 years ago

0.7.5

4 years ago

0.7.46

4 years ago

0.7.43

4 years ago

0.7.42

4 years ago

0.7.4

4 years ago

0.7.3

4 years ago

0.7.2

4 years ago

0.7.1

4 years ago

0.7.0

4 years ago

0.6.6

4 years ago

0.6.5

4 years ago

0.6.4

4 years ago

0.6.3

4 years ago

0.6.2

4 years ago

0.6.1

4 years ago

0.6.0

4 years ago

0.5.1

4 years ago

0.4.42

4 years ago

0.5.0

4 years ago

0.4.41

4 years ago

0.4.4

4 years ago

0.4.3

4 years ago

0.4.2

4 years ago

0.4.1

4 years ago

0.4.0

4 years ago

0.3.9

4 years ago

0.3.8

4 years ago

0.3.7

4 years ago

0.3.6

4 years ago

0.3.5

4 years ago

0.3.4

4 years ago

0.3.2

4 years ago

0.3.3

4 years ago

0.3.0

4 years ago

0.3.1

4 years ago

0.2.9

4 years ago

0.2.8

4 years ago

0.2.7

4 years ago

0.2.6

4 years ago

0.2.5

4 years ago

0.2.4

4 years ago

0.2.3

4 years ago

0.2.1

4 years ago

0.2.2

4 years ago

0.2.0

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago