JSPM

@instructure/ui-text-input

8.12.1-snapshot.7+1e7ac8219
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6471
  • Score
    100M100P100Q145569F
  • License MIT

A styled HTML text input component.

Package Exports

  • @instructure/ui-text-input
  • @instructure/ui-text-input/es/index.js
  • @instructure/ui-text-input/lib/TextInput
  • @instructure/ui-text-input/lib/TextInput/index.js
  • @instructure/ui-text-input/lib/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@instructure/ui-text-input) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme


category: packages

ui-text-input

npm  MIT License  Code of Conduct

A styled HTML text input component.

Components

The ui-text-input package contains the following:

Installation

yarn add @instructure/ui-text-input

Usage

---
example: false
---
class ControlledTextInputExample extends React.Component {
  constructor (props) {
    super(props)

    this.state = {
      value: 'Mint chocolate chip'
    }
  }

  handleChange = (e, value) => this.setState({ value })

  render () {
    return (
      <View as="div">
        <TextInput
          renderLabel="What is your favorite ice cream flavor?"
          value={this.state.value}
          onChange={this.handleChange}
        />
        <View as="div" margin="medium none none">
          <code>this.state.value = {this.state.value}</code>
        </View>
      </View>
    )
  }
}

render(<ControlledTextInputExample />)