Components
AttachedInputs
En hjelpekomponent for å "sette sammen" to input-felt.
Examples
To input-felt
<AttachedInputs> <Input label="Fornavn" /> <Input label="Etternavn" /> </AttachedInputs>
Tre input-felt 🤯
<AttachedInputs> <Input label="Fornavn" /> <Input label="Mellomnavn" /> <Input label="Etternavn" /> </AttachedInputs>
Select og inputfelt
<AttachedInputs> <NativeSelect label="Tittel"> <option>-</option> <option>Hr.</option> <option>Frk.</option> <option>Fru</option> <option>Dr.</option> </NativeSelect> <Input label="Fullt navn" /> </AttachedInputs>
To inputs under hverandre
<AttachedInputs flexDirection="column"> <Input label="Fornavn" /> <Input label="Etternavn" /> </AttachedInputs>