Skip to content
Vy logo
  • Spor
  • Resources
Components

AttachedInputs

A helper component for "combining" two input fields.

GitHub

Code examples

<AttachedInputs>
  <Input label="Fornavn" />
  <Input label="Etternavn" />
</AttachedInputs>

Guidelines

Sometimes it makes sense to combine multiple input fields into the "same" input field.
You can combine Input, SearchInput, PasswordInput, NativeSelect, and Select.

Code

<AttachedInputs />

import { AttachedInputs } from "@vygruppen/spor-react";

Combines two Input components.

Props

Name
Type
Required?
Description
orientation"horizontal" | "vertical"The direction of the inputs to be attached. Default horizontal