BetaPublic beta — Read the release notes
Documentation

Field

Composition wrapper: label + control + description + error with automatic ARIA wiring.

Package
@solidiom/field
Version
0.0.1-next.0
Status
stable

Generated from the package's public source.

API

Controlcomponent

                        Control(props: FieldControlProps): Element
                      

children: (controlProps: () => Record<string, string | boolean | undefined>) => Element

View source

Descriptioncomponent

                        Description(props: FieldDescriptionProps): Element
                      

Props

class?
string
style?
string | CSSProperties

children: Element

View source

Errorcomponent

                        Error(props: FieldErrorProps): Element
                      

Props

class?
string
style?
string | CSSProperties

children: Element

View source

FieldControlPropsinterface

children: (controlProps: () => Record<string, string | boolean | undefined>) => Element

View source

FieldDescriptionPropsinterface

Props

class?
string
style?
string | CSSProperties

children: Element

View source

FieldErrorPropsinterface

Props

class?
string
style?
string | CSSProperties

children: Element

View source

FieldLabelPropsinterface

Props

class?
string
style?
string | CSSProperties

children: Element

View source

FieldRootPropsinterface

Props

class?
string
disabled?
boolean
id?
string — Explicit ID for the field control. Auto-generated if omitted.
invalid?
boolean
readOnly?
boolean
required?
boolean
style?
string | CSSProperties

children: Element

View source

Labelcomponent

                        Label(props: FieldLabelProps): Element
                      

Props

class?
string
style?
string | CSSProperties

children: Element

View source

Rootcomponent

                        Root(props: FieldRootProps): Element
                      

Props

class?
string
disabled?
boolean
id?
string — Explicit ID for the field control. Auto-generated if omitted.
invalid?
boolean
readOnly?
boolean
required?
boolean
style?
string | CSSProperties

children: Element

View source