Skip to content

Commit 03a684d

Browse files
authored
[FEATURE]: checkbox in tailwind
1 parent 34656bd commit 03a684d

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import {stripIndent} from "react-codepen-prefill-embed";
2+
3+
const check_box = stripIndent`
4+
<div className="flex justify-center mt-56 bg-slate-300 w-1/2 mx-auto p-4">
5+
<div>
6+
<div className="form-check">
7+
<input className="form-check-input h-4 w-4 border border-blue-500 rounded-sm bg-white checked:bg-blue-600 checked:border-blue-600 focus:outline-none transition duration-200 mt-1 align-top bg-no-repeat bg-center bg-contain float-left mr-2 cursor-pointer " type="checkbox" value="" id="flexCheckDefault"/>
8+
<label className="form-check-label inline-block text-gray-800" for="flexCheckDefault">
9+
Checkbox
10+
</label>
11+
</div>
12+
<div className="form-check">
13+
<input className="form-check-input h-4 w-4 border border-blue-500 rounded-sm bg-white checked:bg-blue-600 checked:border-blue-600 focus:outline-none transition duration-200 mt-1 align-top bg-no-repeat bg-center bg-contain float-left mr-2 cursor-pointer " type="checkbox" value="" id="flexCheckDefault"/>
14+
<label className="form-check-label inline-block text-gray-800" for="flexCheckDefault">
15+
Checkbox
16+
</label>
17+
</div>
18+
<div className="form-check">
19+
<input className="form-check-input h-4 w-4 border border-blue-500 rounded-sm bg-white checked:bg-blue-600 checked:border-blue-600 focus:outline-none transition duration-200 mt-1 align-top bg-no-repeat bg-center bg-contain float-left mr-2 cursor-pointer " type="checkbox" value="" id="flexCheckDefault"/>
20+
<label className="form-check-label inline-block text-gray-800" for="flexCheckDefault">
21+
Checkbox
22+
</label>
23+
</div>
24+
<div className="form-check">
25+
<input className="form-check-input h-4 w-4 border border-blue-500 rounded-sm bg-white checked:bg-blue-600 checked:border-blue-600 focus:outline-none transition duration-200 mt-1 align-top bg-no-repeat bg-center bg-contain float-left mr-2 cursor-pointer " type="checkbox" value="" id="flexCheckDefault"/>
26+
<label className="form-check-label inline-block text-gray-800" for="flexCheckDefault">
27+
Checkbox
28+
</label>
29+
</div>
30+
</div>
31+
</div>`;
32+
33+
export default check_box;

0 commit comments

Comments
 (0)