@buuug7/simplify-form
v0.1.3
Published
simplify form package
Downloads
6
Readme
simplify form
Install
install @buuug7/simplify-form
package via npm, and then import the @buuug7/simplify-form/index.css
file.
npm install @buuug7/simplify-form
Usage
input
<input class="form-control" type="text" placeholder="placeholder" />
input with form text
<input class="form-control" type="text" placeholder="email" />
<div id="emailHelp" class="form-text">
We never share your email with other.
</div>
input disabled
<input class="form-control" type="text" placeholder="placeholder" disabled />
input with label
<div>
<label class="form-label" for="username">username</label>
<input
class="form-control"
type="text"
id="username"
placeholder="username"
/>
</div>
input file
<input class="form-control" type="file" />
textarea
<textarea class="form-control" placeholder="description"></textarea>
select
<select class="form-select">
<option value="1">One</option>
<option value="2">Two</option>
<option value="3">Three</option>
</select>
select multiple
<select class="form-select" multiple>
<option value="1">One</option>
<option value="2">Two</option>
<option value="3">Three</option>
</select>
select small
<select class="form-select sm">
<option value="1">One</option>
<option value="2">Two</option>
<option value="3">Three</option>
</select>
Check
<div class="form-check">
<input class="form-check-input" type="checkbox" value="" />
<label class="form-check-label"> Default checkbox </label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="" checked />
<label class="form-check-label"> Checked checkbox </label>
</div>
Check inline
<div class="form-check inline">
<input class="form-check-input" type="checkbox" value="" />
<label class="form-check-label"> Default checkbox </label>
</div>
<div class="form-check inline">
<input class="form-check-input" type="checkbox" value="" checked />
<label class="form-check-label"> Checked checkbox </label>
</div>
Check disabled
<div class="form-check">
<input class="form-check-input" type="checkbox" value="" disabled />
<label class="form-check-label"> Default checkbox </label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="" disabled checked />
<label class="form-check-label"> Checked checkbox </label>
</div>
Radio
<div class="form-check">
<input class="form-check-input" type="radio" name="radioName1" />
<label class="form-check-label"> Default radio </label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="radioName1" checked />
<label class="form-check-label"> Default checked radio </label>
</div>
Radio disable
<div class="form-check">
<input class="form-check-input" type="radio" name="radioName2" disabled />
<label class="form-check-label"> Default radio </label>
</div>
<div class="form-check">
<input
class="form-check-input"
type="radio"
name="radioName2"
checked
disabled
/>
<label class="form-check-label"> Default checked radio </label>
</div>