Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
native-x-text-input
Advanced tools
Readme
Input component for capturing text input from users.
yarn add native-x-text-input
npm install native-x-text-input
import { TextInput } from 'native-x-text-input'
function MyComponent() {
return (
<Stack>
...
<TextInput
label='Email'
placeholder='Enter an email'
rounded
error='This input is not valid!'
/>
...
</Stack>
)
}
This component is compatible with native-x-form
import { TextInput } from 'native-x-text-input'
import { Form, FormInput } from 'native-x-form'
interface FormState {
email?: string
}
function MyComponent() {
const onChange = ({ state: { email }, isValid }: { state: FormState; isValid: boolean }) => {
console.log({ email })
}
return (
<Form<FormState> state={state} onChange={onChange}>
...
<FormInput name='email' validators={[isInvalidEmail('This is invalid email!')]}>
<TextInput label='Email' placeholder='Enter an email' rounded />
</FormInput>
...
</Form>
)
}
Property | Default Value | Usage |
---|---|---|
label?: string | Label for the input | |
placeholder?: string | Placeholder text for the text input | |
multiline?: boolean | Set true to allow more than one line for the input | |
rounded?: boolean | false | Set true to use rounded corners |
error?: string | Error message to show | |
autoCapitalization?: string | Valid values are: 'none', 'words' | |
autoFocus?: boolean | Set true to auto focus | |
disabled?: boolean | Set true to disable input | |
password?: boolean | Set true to use the input as secret input | |
numberOfLines?: number | Number of lines to allow | |
icon?: ReactNode | Icon component to render with in the component | |
rightIcon?: ReactNode | Icon component to render at the right end of the component | |
fill?: boolean | Set true to fill the container | |
width?: number | Width of the text input | |
height?: number | Height of the text input | |
errorColor?: string | 'error' | One of the colors specified by theme provider |
Here is an example of the release type that will be done based on a commit messages:
Commit message | Release type |
---|---|
fix: [comment] | Patch Release |
feat: [comment] | Minor Feature Release |
perf: [comment] | Major Feature Release |
doc: [comment] | No Release |
refactor: [comment] | No Release |
chore: [comment] | No Release |
FAQs
Text input component
The npm package native-x-text-input receives a total of 221 weekly downloads. As such, native-x-text-input popularity was classified as not popular.
We found that native-x-text-input demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.