Hanzo GUI

Input & TextArea

Flexible form fields in styled and unstyled forms

Using the same base component TextInput, from React Native or React Native Web, Hanzo GUI simply wraps these components to allow the full set of style props, as well as scaling all the styles up or down using the size property, much like Button.

Installation

Input is already installed in @hanzo/gui, or you can install it independently:

npm install @hanzogui/input

Input

A one-line input field:

import { Input } from '@hanzo/gui'

export const App = () => (
  // Accepts size and style properties directly
  <Input size="$4" borderWidth={2} />
)

TextArea

For multiline inputs:

import { TextArea } from '@hanzo/gui'

export const App = () => (
  // Accepts size and style properties directly
  <TextArea size="$4" borderWidth={2} />
)

Last updated on

On this page