Skip to content

Input Group

Input shell with prefix, suffix, and textarea slots.

Import

ts
import {
  InputGroup,
  InputGroupInput,
  InputGroupPrefix,
  InputGroupSuffix,
  InputGroupTextArea,
} from '@heroui-vue/vue'

Usage

https://
.com
Note

<template>
  <div class="flex w-full max-w-xl flex-col gap-4">
    <InputGroup>
      <InputGroupPrefix>https://</InputGroupPrefix>
      <InputGroupInput placeholder="heroui-vue.dev" />
      <InputGroupSuffix>.com</InputGroupSuffix>
    </InputGroup>
    <InputGroup variant="secondary">
      <InputGroupPrefix>Note</InputGroupPrefix>
      <InputGroupTextArea placeholder="Describe the change..." rows="3" />
    </InputGroup>
  </div>
</template>

<script setup>
import {
  InputGroup,
  InputGroupInput,
  InputGroupPrefix,
  InputGroupSuffix,
  InputGroupTextArea,
} from '@heroui-vue/vue'
</script>

API

PropTypeDefaultDescription
variant'primary' | 'secondary'undefinedVisual style
fullWidthbooleanfalseFill parent width

Released under the Apache-2.0 License.