Skip to main content

HTML5 Implementation

Github repo: https://github.com/concrete-form/html5

Install

yarn add @concrete-form/html5
# or with NPM :
npm install @concrete-form/html5

Not sure which version to install ? check this

Styles

import '@concrete-form/html5/base.css'

https://github.com/concrete-form/html5/blob/main/src/base.css

  • Handles the position of the label (left, right, top or bottom)
  • Handles orientation of the group of items (horizontally or vertically)

Full styles

Note: Even though it's called "full" styles, Concrete-form doesn't make any design decisions. You must implement your own styles.

import '@concrete-form/html5/styles.css'

https://github.com/concrete-form/html5/blob/main/src/styles.css

  • Includes base.css
  • Adds red color to errors and invalid controls
  • Adds styles to ToggleSwitch checkbox