Server IP : 104.21.93.192 / Your IP : 216.73.216.73 Web Server : LiteSpeed System : Linux premium900.web-hosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 User : redwjova ( 1790) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/redwjova/near.llc/wp-content/plugins/extendify/src/Launch/components/ |
Upload File : |
import classNames from 'classnames'; export const CheckboxInputCard = (props) => { const { label, description, Icon, checked, ...rest } = props; return ( <label className="flex h-full w-full items-center justify-between p-4 font-semibold text-gray-900" htmlFor={props.id}> <div className="flex flex-auto items-center"> <span className="relative mr-3 inline-block h-5 w-5 align-middle rtl:ml-3 rtl:mr-0"> <input {...rest} checked={checked} className="m-0 h-5 w-5 rounded-sm" type="checkbox" /> <svg className={classNames('absolute inset-0 -mt-px block h-5 w-5', { 'text-white': checked, 'text-transparent': !checked, })} viewBox="1 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" role="presentation"> <path d="M8.72912 13.7449L5.77536 10.7911L4.76953 11.7899L8.72912 15.7495L17.2291 7.24948L16.2304 6.25073L8.72912 13.7449Z" fill="currentColor" /> </svg> </span> <span> <span className="text-sm font-medium">{label}</span> {description ? ( <span className="block pr-4 pt-1 font-normal text-gray-700 rtl:pl-4 rtl:pr-0"> {description} </span> ) : ( <span /> )} </span> </div> {Icon && <Icon className="h-6 w-6 flex-none text-design-main" />} </label> ); };