Input
Input is part of the Forms and selection group. Single-line text input styled with semantic form tokens.
Installation
Section titled “Installation”npx bambiui add input --framework reactnpx bambiui add input --framework solidnpx bambiui add input --framework sveltenpx bambiui add input --framework vueimport { 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>Preview
Section titled “Preview”
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.
Behavior
Section titled “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.
Accessibility
Section titled “Accessibility”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.
Exports
Section titled “Exports”InputTokens
Section titled “Tokens”Customize tokens after installing and previewing the component. Relevant tokens include:
--bambi-background--bambi-foreground--bambi-border--bambi-ring