Skip to content

Input

Input is part of the Forms and selection group. Single-line text input styled with semantic form tokens.

Terminal window
npx bambiui add input --framework react
Terminal window
npx bambiui add input --framework solid
Terminal window
npx bambiui add input --framework svelte
Terminal window
npx bambiui add input --framework vue
import { Input } from "@/components/ui/input";
export function Example() {
return <Input />;
}
import { Input } from "~/components/ui/input";
export function Example() {
return <Input />;
}
<script lang="ts">
import { Input } from "$lib/components/ui/input";
</script>
<Input />
<script setup lang="ts">
import { Input } from "@/components/ui/input";
</script>
<template>
<Input />
</template>
Input preview should be verified in the target framework after copying the component source. Interactive behavior comes from generated public artifacts, not docs-only mock behavior.

Use for names, emails, search fields, URLs, and other single-line values.

Generated output uses serializable data-* attributes for state and styling. Controlled components fire bambi:<event-name> events and expect application state to update externally; uncontrolled components manage local source state and still fire events.

Use semantic labels, visible focus states, and keyboard interaction patterns appropriate for Input. Do not hide required instructions in transient UI. Verify focus movement and disabled states in the installed framework output.

Input

Customize tokens after installing and previewing the component. Relevant tokens include:

  • --bambi-background
  • --bambi-foreground
  • --bambi-border
  • --bambi-ring