Introduction

The Input component is a text input that can be used to modify the value of any variable in your app.

Usage

import { Input } from '@latitude-data/react'
import { useState } from 'react'

const MyComponent = () => {
  const [value, setValue] = useState('')

  return (
    <Input
      value={value}
      onChange={e => setValue(e.target.value)}
    />
  )
}

Properties

In addition to the standard HTML input properties, the Input component accepts the following props:

label
string

A label for the input.

description
string

A description to display below the input.