Search Input

A search input is a text input that allows users to search for content in your app.

Pro component

Requires all-access to use the source code

Apple
Apple
import { Stack } from 'expo-router';
import { View } from 'react-native';

import { SearchInput } from '~/components/nativewindui/SearchInput';

export default function SearchInputScreen() {
  return (
    <>
      <Stack.Screen options={{ title: 'Search Input' }} />
      <View className="justify-center p-4">
        <SearchInput textContentType="none" autoComplete="off" />
      </View>
    </>
  );
}
Logo

Unlock All Pro Screens & Components

Elevate your app with powerful, native-feeling components and templates. Build faster with beautiful ready-to-use designs.

Get all-access

Usage

import { SearchInput } from '~/components/nativewindui/SearchInput';
<SearchInput />

Props

SearchInput

Inherits all the props from React Native's TextInput component.

PropTypeDescription
containerClassNamestringClass name to style the container of the search input.
iconContainerClassNamestringClass name to style the icon container within the search input.
cancelTextstringiOS only - Text to display on the cancel button.
iconColorstringColor of the icon displayed in the search input.
© Ronin Technologies LLC 2024