Skip to main content

Introduction

Filament provides a comprehensive set of form fields for capturing different types of data. All form field classes are found in the Filament\Forms\Components namespace.

Text Input

The text input allows you to interact with string values:

Input types

You can set the HTML input type using dedicated methods:

Affixes

You can add prefixes and suffixes to text inputs:

Input masks

Apply input masks for formatted input:

Select

The select component allows selection from predefined options:

Searchable selects

Enable search for easier option access:

Multi-select

Allow multiple selections:

Native vs JavaScript select

By default, Filament uses native HTML selects. Enable a JavaScript-powered select:

Relationship selects

Populate options from Eloquent relationships:

Checkbox

A single checkbox for boolean values:

Toggle

A modern toggle switch for boolean values:

Radio

Radio buttons for single selection from options:

Checkbox List

Multiple checkboxes for array selection:

Date & Time Pickers

Date, time, and datetime selection:

File Upload

File and image upload with preview:

Multiple file uploads

Image uploads

Rich Editor

WYSIWYG editor with formatting tools:

Markdown Editor

Markdown editor with preview:

Textarea

Multi-line text input:

Tags Input

Input for managing tags or keywords:

Repeater

Repeatable set of fields for array data:

Repeater with relationships

Builder

Flexible builder with multiple block types:

Key-Value

Key-value pair editor:

Color Picker

Color selection input:

Toggle Buttons

Button group for single or multiple selection:

Multiple selection

Slider

Range slider for numeric input:

Code Editor

Code editor with syntax highlighting:

Hidden

Hidden field for storing data:

View Field

Render a custom Blade view as a field:

Placeholder

Display read-only content:

Next steps