BetaPublic beta — Read the release notes
Documentation

Input Group

Input wrapper with prefix/suffix addon slots for icons and buttons.

Package
@solidiom/input-group
Version
0.6.0
Status
experimental

Generated from the package's public source.

API

Inputcomponent

                        Input(props: InputProps): Element
                      

Props

class?
string
defaultValue?
string — Default value (uncontrolled).
disabled?
boolean
id?
string — Element id for label association.
invalid?
boolean
name?
string — Form field name.
onBlur?
EventHandler<HTMLInputElement, FocusEvent> — Native blur event handler.
onFocus?
EventHandler<HTMLInputElement, FocusEvent> — Native focus event handler.
onInput?
EventHandler<HTMLInputElement, InputEvent> — Native input event handler.
onValueChange?
(value: string) => void — Called when the value changes.
placeholder?
string — Input placeholder text.
readOnly?
boolean
required?
boolean
style?
string | CSSProperties
type?
"number" | "text" | "email" | "password" | "search" | "tel" | "url" — HTML input type.
value?
string — Current input value (controlled).

View source

InputGroupRootPropsinterface

Props

class?
string
disabled?
boolean
invalid?
boolean
style?
string | CSSProperties

children: Element

View source

InputPropsinterface

Props

class?
string
defaultValue?
string — Default value (uncontrolled).
disabled?
boolean
id?
string — Element id for label association.
invalid?
boolean
name?
string — Form field name.
onBlur?
EventHandler<HTMLInputElement, FocusEvent> — Native blur event handler.
onFocus?
EventHandler<HTMLInputElement, FocusEvent> — Native focus event handler.
onInput?
EventHandler<HTMLInputElement, InputEvent> — Native input event handler.
onValueChange?
(value: string) => void — Called when the value changes.
placeholder?
string — Input placeholder text.
readOnly?
boolean
required?
boolean
style?
string | CSSProperties
type?
"number" | "text" | "email" | "password" | "search" | "tel" | "url" — HTML input type.
value?
string — Current input value (controlled).

View source

Prefixcomponent

                        Prefix(props: PrefixProps): Element
                      

Props

class?
string
style?
string | CSSProperties

children: Element

View source

PrefixPropsinterface

Props

class?
string
style?
string | CSSProperties

children: Element

View source

Rootcomponent

                        Root(props: InputGroupRootProps): Element
                      

Props

class?
string
disabled?
boolean
invalid?
boolean
style?
string | CSSProperties

children: Element

View source

Suffixcomponent

                        Suffix(props: SuffixProps): Element
                      

Props

class?
string
style?
string | CSSProperties

children: Element

View source

SuffixPropsinterface

Props

class?
string
style?
string | CSSProperties

children: Element

View source