Input

Displays a form input field or a component that looks like an input field.

Examples

Installation

Install the package, then import only the components a route uses. Exports are tree-shakable.

Install
pnpm add fractalsvelte
Import
<script lang="ts">
	import { Input } from 'fractalsvelte';
</script>

Usage

Usage
<script lang="ts">
	import { Input } from 'fractalsvelte';
</script>

<Input placeholder="Email" />

Props

PropTypeDefaultDescription
valuestring''The selected value. Supports bind:.
placeholderstring-Placeholder text shown when empty.
typestring'text'Behavioural mode of the component.
disabledbooleanfalsePrevents interaction while preserving semantic state.
namestring-The form field name submitted with the value.