Security News
Introducing the Socket Python SDK
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
import Input from 'rc-input';
import { render } from 'react-dom';
render(<Input placeholder="input" allowClear />, mountNode);
Property | Type | Default | Description |
---|---|---|---|
prefixCls | string | rc-input | |
className | string | '' | additional class name of input |
style | React.CSSProperties | style properties of input | |
affixWrapperClassName | string | - | className with 'rc-input-affix-wrapper' |
groupClassName | string | - | className with 'rc-input-group-wrapper' |
wrapperClassName | string | - | className with 'rc-input-wrapper' |
addonAfter | ReactNode | - | The label text displayed after (on the right side of) the input field |
addonBefore | ReactNode | - | The label text displayed before (on the left side of) the input field |
allowClear | boolean | { clearIcon: ReactNode } | false | If allow to remove input content with clear icon |
bordered | boolean | true | Whether has border style |
defaultValue | string | - | The initial input content |
disabled | boolean | false | Whether the input is disabled |
id | string | - | The ID for input |
maxLength | number | - | The max length |
showCount | boolean | { formatter: ({ value: string, count: number, maxLength?: number }) => ReactNode } | false | Whether show text count |
prefix | ReactNode | - | The prefix icon for the Input |
suffix | ReactNode | - | The suffix icon for the Input |
type | string | text | The type of input, see: MDN( use Input.TextArea instead of type="textarea" ) |
value | string | - | The input content value |
onChange | function(e) | - | Callback when user input |
onPressEnter | function(e) | - | The callback function that is triggered when Enter key is pressed |
npm install
npm start
rc-input is released under the MIT license.
FAQs
React input component
The npm package rc-input receives a total of 744,154 weekly downloads. As such, rc-input popularity was classified as popular.
We found that rc-input demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.
Security News
A new Rust RFC proposes "Trusted Publishing" for Crates.io, introducing short-lived access tokens via OIDC to improve security and reduce risks associated with long-lived API tokens.