BetaPublic beta — Read the release notes
Documentation

Label

Accessible label element linked to form controls via htmlFor.

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

Generated from the package's public source.

API

LabelRootPropsinterface

Props

class?
string
disabled?
boolean — Whether the associated field is disabled (visual hint only).
htmlFor?
string — The id of the form control this label is associated with.
id?
string — Element id for external reference.
invalid?
boolean — Whether the associated field is invalid (visual hint only).
required?
boolean — Whether the associated field is required (visual hint only).
style?
string | CSSProperties

children: Element

View source

Rootcomponent

                        Root(props: LabelRootProps): Element
                      

Props

class?
string
disabled?
boolean — Whether the associated field is disabled (visual hint only).
htmlFor?
string — The id of the form control this label is associated with.
id?
string — Element id for external reference.
invalid?
boolean — Whether the associated field is invalid (visual hint only).
required?
boolean — Whether the associated field is required (visual hint only).
style?
string | CSSProperties

children: Element

View source