How to use the bpk-component-input.INPUT_TYPES.text function in bpk-component-input

To help you get started, we’ve selected a few bpk-component-input examples, based on popular ways it is used in public projects.

github Skyscanner / backpack / packages / bpk-component-fieldset / stories.js View on Github external
.add('Input', () => (
    <FieldsetContainer
      label="Name"
      validationMessage="Please enter a name (Joe Bloggs is correct!)"
      validValue="Joe Bloggs"
    >
      <BpkInput
        id="name_input"
        name="name"
        type={INPUT_TYPES.text}
        placeholder="e.g. Joe Bloggs"
        value=""
      />
    </FieldsetContainer>
  ))
  .add('Input with description', () => (