@cmds/text-input

Used for entering a single line of text.

Usage no npm install needed!

<script type="module">
  import cmdsTextInput from 'https://cdn.skypack.dev/@cmds/text-input';
</script>

README

TextInput

npm package

Used for entering a single line of text.

Getting started

npm install @cmds/text-input --save

Prop Types

Property Type Required? Description
id String Unique identifier for the field
className String Add a className to the input
value String Text to be edited
onChange Function Triggers when the value changes: ({id: string, value: string})

More information

This component is designed and developed as part of Cosmos Design System.