An open API service indexing awesome lists of open source software.

https://github.com/timkelty/suitcss-components-form-field


https://github.com/timkelty/suitcss-components-form-field

Last synced: 5 months ago
JSON representation

Awesome Lists containing this project

README

          

# `FormField`

## Decendants

* `FormField-label`
* `FormField-input` (text-like inputs)
* `FormField-inputPrefix`
* `FormField-inputSuffix`
* `FormField-radio`
* `FormField-radio`
* `FormField-dropdown`
* `FormField-option` name?
* `FormField-optionLabel` name?
* `FormField-message` (should this just be FormField-error)

## Modifiers

* `FormField--stacked` (stacked by default, but this will apply margins)
* `FormField--inline`
* `FormField--floatLabel`
* `FormField-message--error`

## States

* `.is-error`
* `.is-disabled`

```html



My Floating Label


Some heading for a checkbox, if desired.




Single Checkbox...Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent vehicula faucibus leo id pellentesque. Proin eu malesuada massa. Vivamus commodo rhoncus luctus. Morbi at nibh nisl, sed hendrerit augue.


Group Label





Radio 1



Radio 2



```