PluginProbe
Extendify / 0.10.2
Extendify v0.10.2
3.2.1 3.2.0 3.1.6 3.1.5 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.6 3.0.5 3.0.4 trunk 0.1.0 0.10.0 0.10.1 0.10.2 0.11.0 0.11.1 0.2.0 0.3.0 0.3.1 0.4.0 0.5.0 0.6.0 All 127 releases
extendify / src / Onboarding / components / CheckboxInputCard.js

CheckboxInputCard.js in Extendify 0.10.2, at src/Onboarding/components/CheckboxInputCard.js

47 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { Checkmark } from '@onboarding/svg'
2
3 export const CheckboxInputCard = ({
4 label,
5 slug,
6 description,
7 checked,
8 onChange,
9 Icon,
10 }) => {
11 return (
12 <label
13 className="w-full flex items-center justify-between hover:text-partner-primary-bg focus-within:text-partner-primary-bg font-semibold p-4"
14 htmlFor={slug}>
15 <div className="flex items-center flex-auto">
16 <span className="mt-0.5 w-6 h-6 relative inline-block mr-3 align-middle">
17 <input
18 id={slug}
19 className="h-5 w-5 rounded-sm"
20 type="checkbox"
21 onChange={onChange}
22 defaultChecked={checked}
23 />
24 <Checkmark
25 className="absolute components-checkbox-control__checked"
26 style={{ width: 24, color: '#fff' }}
27 role="presentation"
28 />
29 </span>
30 <span>
31 <span className="text-base">{label}</span>
32 {description ? (
33 <span className="block pt-1 text-gray-700 pr-4 font-normal">
34 {description}
35 </span>
36 ) : (
37 <span></span>
38 )}
39 </span>
40 </div>
41 {Icon && (
42 <Icon className="flex-none text-partner-primary-bg h-6 w-6" />
43 )}
44 </label>
45 )
46 }
47