Documentation / Components · Primitives

Input

Enter a single text or numeric value..

ROM UI 0.1.0-alpha.7 Markdown

Enter a single text or numeric value.

Public import

svelte
<script lang="ts">
  import { Input } from "rom-ui/primitives/input";
  import "rom-studio/styles";
</script>

Composition and responsibility

Use this part with exports from the same primitive family. Interactive roots own shared interaction state. Content parts render the corresponding region.

Public names: Root, Input.

Declared props

This declaration comes from the installed package. Imported types retain their upstream meaning.

ts
type Props = WithElementRef<
		Omit<HTMLInputAttributes, "type"> &
			({ type: "file"; files?: FileList } | { type?: InputType; files?: undefined })
	>;

Source and version

ROM UI 0.1.0-alpha.7. Component source.

See the composition guide for host integration boundaries.

This page follows the captured repository source.View the source