@nitro-ui/component-form-float
v1.1.0
Published
Form float styling for Nitro UI.
Downloads
111
Readme
dropdown# Nitro UI: Component > Form Float
Toggle contextual overlays for displaying lists of links and more
Getting Started
Get latest version by installing via NPM @nitro-ui/component-form-float:
npm install @nitro-ui/component-form-float
Dependencies
Form float require Nitro Form Component which already define inside package.json.
Usage
Sample markup for Form float
Input
<div class="c-field-float">
<input type="text" class="c-input"/>
<label>Label</label>
<div class="c-field__message">
Message here
</div>
</div>
Disable State
<div class="c-field-float">
<input type="text" class="c-input" disabled/>
<label>Label</label>
<div class="c-field__message">
Message here
</div>
</div>
Error State
<div class="c-field-float c-field--error">
<input type="text" class="c-input"/>
<label>Label</label>
<div class="c-field__message">
Message here
</div>
</div>
Select
<div class="c-field-float">
<select class="c-input">
<option></option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select>
<label>Select</label>
<div class="c-field__message">
Message here
</div>
</div>
Input with Button
<div class="c-field-float">
<div class="c-input-btn u-padding-ends-none u-flex u-flex--items-center u-bg-white">
<input type="text" class="c-input"/>
<label>Label</label>
<button class="c-btn c-btn--secondary">Button</button>
</div>
<div class="c-field__message">
Message here
</div>
</div>
Development
To extends, develop or contribute to this component, you're required to fork our main repository and made a pull request.
Development Requirements
Development tools required for this component are:
Ruby and SASS are optional if you're fully using node-sass from npm for development.
Development Setup
Run:
npm install
Compile
Run:
grunt
TODO
Nothing todo for now.
CHANGELOG
All notable changes to this project will be documented in this file. For now, let's keep TODO and CHANGELOG in README file. Keeping things simple.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[0.0.0-beta] - 2019-10-08
Added
- Initial setup
- Fixed CSS style for reorder the First and Last button