Skip to main content
239

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
Themes
React Native docs
FormsReact Native

Input group

Join a text field with prefix or suffix text, an icon, or a button in one frame.

Public APILumenInputGroupReact Native

Native example

Use Input group

Use it for units, domains, and inline actions. Keep addon text short.

Input group rendered in the Expo web renderer Lumen playground

Captured exampleExpo web renderer

Open interactive preview
Open the Input group demo
tsx
import { LumenFieldGroup, LumenInputGroup } from '@santi020k/lumen-react-native'
import { useState } from 'react'

export function WorkspaceAddress() {
  const [site, setSite] = useState('lumen')

  return (
    <LumenFieldGroup label="Website" description="Your public workspace address.">
      <LumenInputGroup
        autoCapitalize="none"
        label="Website"
        leadingText="https://"
        trailingText=".app"
        value={site}
        onValueChange={setSite}
      />
    </LumenFieldGroup>
  )
}
React Native
A website field that joins a muted `https://` prefix and `.app` suffix to the text in one frame.

Reference

Public API

The primary shared and platform-specific options exposed by LumenInputGroup.

APIValues or typeDefaultDescription
leading / trailing / invalidleading addon / trailing addon / error framenone / none / falseUse it for units, domains, and inline actions.

Native behavior

Design and accessibility

When to use it

Use it for units, domains, and inline actions. Keep addon text short.

Accessibility

The field keeps its own name; addon buttons keep their own names.

Shared component

Available on other platforms

Apple / SwiftUIAndroid / Compose Web
React Native docsNative primitives