ui/input.tsx

react-native-reusables · packages/registry/src/uniwind/components/ui/input.tsx · typescript · MIT
ui

Styled React Native input component for collecting user text.

// Source: https://github.com/founded-labs/react-native-reusables | License: MIT | Copyright 2025 Founded Labs
// Provided via justclaw.it.com; keep this notice with the code.
import { cn } from '@/registry/uniwind/lib/utils';
import { Platform, TextInput } from 'react-native';

function Input({
  className,
  placeholderClassName,
  ...props
}: React.ComponentProps<typeof TextInput> & React.RefAttributes<TextInput>) {
  return (
    <TextInput
      className={cn(
        'dark:bg-input/30 border-input bg-background text-foreground flex h-10 w-full min-w-0 flex-row items-center rounded-md border px-3 py-1 text-base leading-5 shadow-sm shadow-black/5 sm:h-9',
        props.editable === false &&
          cn(
            'opacity-50',
            Platform.select({ web: 'disabled:pointer-eve

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key