Skip to content
input
AutoXXS (320px)XS (375px)SM (640px)MD (768px)LG (1024px)XL (1280px)XXL (1536px)
SketchMaterialiOSTamagui
DataInjectionKeyPatternsServiceTransactionProcessResearchProductQualityPerformanceSpecDomainFunctionTechnologyArchitectureConfigMiddlewareDataDatabaseDrizzleMigrationModelop-sqliteSchemaSQLState ManagementDraftKeystoneMergePatchPatchesPersistenceReactiveRedoStoreUndoTestingDeviceFactoryIsolationTypeScriptZodTopicsCommunicationBidsNVCDesignDesign ImplicationsEducationPedagogyFoundationsPsychologyAttachmentFloodingRelatingAuthentic RelatingUIEditorReact Native

input

Fragment reference input
tags
ui

Inputs collect data from the user.

Usage

Basic input with label
puguiinput wa-input-basic
input(label="Name")

Types

The type attribute controls the type of input the browser renders.

Input type variants
puguiinput wa-input-types
input(label="Email" type="email")
input(label="Date" type="date")

Options

Add interactive features with shorthand attributes.

Input with clear button and password toggle
puguiinput wa-input-options
input(label="Nickname" placeholder="What should we call you?" with-clear)
input(label="Password" type="password" password-toggle)

Sizes

Use the size attribute to change an input’s size.

Input size scale
puguiinput wa-input-sizes
input(label="Small" size="small")
input(label="Medium" size="medium")
input(label="Large" size="large")

Attributes

NameTypeDefaultDescription
labelstring-The input label.
placeholderstring-Placeholder text.
typetext | email | number | password | datetextInput type.
sizesmall | medium | largemediumInput size.
disabledbooleanfalsePrevents interaction.
requiredbooleanfalseMarks as required.
with-clearbooleanfalseShows a clear button.
password-togglebooleanfalseShows a toggle button for password visibility.