-
Notifications
You must be signed in to change notification settings - Fork 0
Input
Radi Cho edited this page Mar 17, 2019
·
10 revisions
The component, by default, looks like these variants:
Default | Focused | Filled with text; on focus |
---|---|---|
It can be achieved with the following code:
import { Input } from 'rsg-components'
const app = document.querySelector('#app');
ReactDOM.render(
<Input>BUTTON</Input>, app
)
The Input component is available after version 3.0.0-beta.1
This component allows all React props related to input, so it's fully customizable.
If you want to use rsg-components
(and any other thing related to React, for that matter) at it's best, I recommend you read more React docs:
And understand it's architecture and history better.
- https://en.wikipedia.org/wiki/React_(JavaScript_library)
- https://github.com/acdlite/react-fiber-architecture (For understanding React Fiber's (aka React 16+) internals)
npm install rsg-components --save
or
yarn add rsg-components