React UI kits with [styled-components](https://styled-components.com/) & [typescript](https://www.typescriptlang.org/)
npm install react-c2c-uish
// npm
npm install react-c2c-ui// yarn
yarn add react-c2c-ui
`Usage
`tsx
import React from 'react';
import ReactDOM from 'react-dom';
import {Button} from 'react-c2c-ui';function App() {
return (
);
}
ReactDOM.render( , 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 pageChanged props of Popup component
Props of Popup are changed from 0.7.3 version.
Removed onClickTrigger, onClose props and added setTarget.
`tsx
...
const [popupTarget, setPopupTarget] = useState("");
return (
... // required props and other props you want
name={"popup1"}
setTarget={(target:string)=>{
// Add code lines that can change target value
setPopupTarget(target);
}}
target={popupTarget}
/>
... // required props and other props you want
name={"popup2"}
setTarget={(target:string)=>{
// Add code lines that can change target value
setPopupTarget(target);
}}
target={popupTarget}
/>
)
`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.
`tsx
/* Same as Dropdown /
... // required props and other props you want
multiple={false} // or skip this prop
/>
/* Same as DropdownMulti /
... // required props and other props you want
multiple // or multiple={true}
/>
``