@smui/form-field
TypeScript icon, indicating that this package has built-in type declarations

8.0.0-beta.3 • Public • Published

Svelte Material UI - Form Field

A wrapper to align an input and its label.

MDC Form Fields make the Input/Label RTL-aware and also activates a ripple effect.

Installation

npm install --save-dev @smui/form-field

Examples and Usage Information

https://sveltematerialui.com/demo/form-field

Exports

(default)

A Form Field component.

Props / Defaults

  • use: [] - An array of Svelte actions and/or arrays of an action and its options.
  • class: '' - A CSS class string.
  • align: 'start' - Where to align the input. ('start' or 'end')
  • inputId: (programatically assigned) - The ID of the input the label is to be associated with.

The ID is generated using a module context counter, so you don't need to provide one yourself. The format is SMUI-form-field-{counter}, and the counter starts at 0.

Forwarded Props

  • label$ - Props forwarded to the label element.

More Information

See Form Field in MDC-Web for information about the upstream library's architecture.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
8.0.0-alpha.00alpha
8.0.0-beta.31,015latest

Version History

VersionDownloads (Last 7 Days)Published
8.0.0-beta.31,015
8.0.0-beta.230
8.0.0-beta.16
8.0.0-beta.01
8.0.0-alpha.00
7.0.02,971
7.0.0-beta.1841
7.0.0-beta.17141
7.0.0-beta.16163
7.0.0-beta.15917
7.0.0-beta.14154
7.0.0-beta.130
7.0.0-beta.120
7.0.0-beta.110
7.0.0-beta.100
7.0.0-beta.90
7.0.0-beta.814
7.0.0-beta.70
7.0.0-beta.60
7.0.0-beta.50
7.0.0-beta.40
7.0.0-beta.312
7.0.0-beta.20
7.0.0-beta.10
7.0.0-beta.0409
6.1.4844
6.1.00
6.0.00
6.0.0-beta.163
6.0.0-beta.1514
6.0.0-beta.145
6.0.0-beta.130
6.0.0-beta.120
6.0.0-beta.111
6.0.0-beta.100
6.0.0-beta.90
6.0.0-beta.80
6.0.0-beta.70
6.0.0-beta.60
6.0.0-beta.50
6.0.0-beta.40
6.0.0-beta.30
6.0.0-beta.20
6.0.0-beta.10
6.0.0-beta.02
5.0.13
5.0.03
5.0.0-beta.82
5.0.0-beta.72
5.0.0-beta.60
5.0.0-beta.50
5.0.0-beta.40
5.0.0-beta.30
5.0.0-beta.10
5.0.0-beta.00
4.2.0268
4.1.00
4.0.07
3.1.00
3.0.20
3.0.10
3.0.00
3.0.0-beta.120
3.0.0-beta.110
3.0.0-beta.100
3.0.0-beta.90
3.0.0-beta.80
3.0.0-beta.70
3.0.0-beta.60
3.0.0-beta.50
3.0.0-beta.40
3.0.0-beta.30
3.0.0-beta.20
3.0.0-beta.10
3.0.0-beta.00
2.0.0-beta.15
2.0.0-beta.02
2.0.0-alpha.00
1.1.09
1.0.06
1.0.0-beta.212
1.0.0-beta.200
1.0.0-beta.190
1.0.0-beta.181
1.0.0-beta.170
1.0.0-beta.160
1.0.0-beta.150
1.0.0-beta.140
1.0.0-beta.110
1.0.0-beta.100
1.0.0-beta.90
1.0.0-beta.80

Package Sidebar

Install

npm i @smui/form-field

Weekly Downloads

5,897

Version

8.0.0-beta.3

License

Apache-2.0

Unpacked Size

52 kB

Total Files

16

Last publish

Collaborators

  • hperrin