dropdown# Nitro UI: Component > Form Float
Toggle contextual overlays for displaying lists of links and more
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.
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>
To extends, develop or contribute to this component, you're required to fork our main repository and made a pull request.
Development tools required for this component are:
Ruby and SASS are optional if you're fully using node-sass from npm for development.
Run:
npm install
Run:
grunt
Nothing todo for now.
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.
- Initial setup
- Fixed CSS style for reorder the First and Last button