
Security News
Opengrep Adds Apex Support and New Rule Controls in Latest Updates
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.
@gluestack-ui/input
Advanced tools
A universal headless input component for React Native, Next.js & React
To use @gluestack-ui/input
, all you need to do is install the
@gluestack-ui/input
package:
$ yarn add @gluestack-ui/input
# or
$ npm i @gluestack-ui/input
The Input component is your go-to tool for gathering user input in a sleek and user-friendly text field. Whether you're designing a simple login form or a complex search feature, this component has got you covered. Here's an example how to use this package to create one:
import { Root, Input } from '../components/core/input/styled-components';
import { createInput } from '@gluestack-ui/input';
const InputField = createInput({
Root,
Input,
});
Default styling of all these components can be found in the components/core/input file. For reference, you can view the source code of the styled input
components.
// import the styles
import { Root, Input } from '../components/core/input/styled-components';
// import the createInput function
import { createInput } from '@gluestack-ui/input';
//import any icon
import { searchIcon } from '@gluestack/icons';
// Understanding the API
const InputField = createInput({
Root,
Input,
});
// Using the input component
export default () => (
<Input>
<InputSlot pl="$3">
<InputIcon as={SearchIcon} />
</InputSlot>
<InputInput placeholder="your text goes here..." />
</Input>
);
More guides on how to get started are available here.
FAQs
A universal headless input component for React Native, Next.js & React
The npm package @gluestack-ui/input receives a total of 35,827 weekly downloads. As such, @gluestack-ui/input popularity was classified as popular.
We found that @gluestack-ui/input demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 16 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 latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.