Skip to content
h v3.13.3
Search the docs
Find a component, section or page.

Input Group

Add addons, buttons, and helper content to inputs.

12 results

Installation

pnpm add @heyramzi/ui

Usage

import * as InputGroup from "@heyramzi/ui/shadcn/input-group";
<InputGroup.Root>
  <InputGroup.Addon>
    <InputGroup.Text>https://</InputGroup.Text>
  </InputGroup.Addon>
  <InputGroup.Input placeholder="example.com" />
</InputGroup.Root>

API reference

InputGroup.Root

ref bindable HTMLDivElement | null
Default null
class string
children Snippet
...rest
Every prop of HTMLAttributes<HTMLDivElement> from svelte/elements
Prop Type Default
ref bindable HTMLDivElement | null null
class string
children Snippet
...rest Every prop of HTMLAttributes<HTMLDivElement> from svelte/elements

InputGroup.Input

ref bindable Input
Default null
value bindable Input
class string
...rest
Every prop of Input
Prop Type Default
ref bindable Input null
value bindable Input
class string
...rest Every prop of Input

InputGroup.Addon

align "inline-start" | "inline-end" | "block-start" | "block-end"
Default "inline-start"
ref bindable HTMLDivElement | null
Default null
class string
children Snippet
...rest
Every prop of HTMLAttributes<HTMLDivElement> from svelte/elements
Prop Type Default
align "inline-start" | "inline-end" | "block-start" | "block-end" "inline-start"
ref bindable HTMLDivElement | null null
class string
children Snippet
...rest Every prop of HTMLAttributes<HTMLDivElement> from svelte/elements

InputGroup.Button

size "xs" | "sm" | "icon-xs" | "icon-sm"
Default "xs"
ref bindable Button
Default null
class string
children Snippet
type "button" | "submit" | "reset"
Default "button"
variant string
Default "ghost"
...rest
Every prop of Button except href, size
Prop Type Default
size "xs" | "sm" | "icon-xs" | "icon-sm" "xs"
ref bindable Button null
class string
children Snippet
type "button" | "submit" | "reset" "button"
variant string "ghost"
...rest Every prop of Button except href, size

InputGroup.Text

ref bindable HTMLSpanElement | null
Default null
class string
children Snippet
...rest
Every prop of HTMLAttributes<HTMLSpanElement> from svelte/elements
Prop Type Default
ref bindable HTMLSpanElement | null null
class string
children Snippet
...rest Every prop of HTMLAttributes<HTMLSpanElement> from svelte/elements

InputGroup.Textarea

ref bindable Textarea
Default null
value bindable Textarea
class string
...rest
Every prop of Textarea
Prop Type Default
ref bindable Textarea null
value bindable Textarea
class string
...rest Every prop of Textarea