How can I create a checkbox from the input tag in plasmic?
oh! got it - that native element isn’t built-in, but have you seen the checkbox component?
alternatively, if you need a native input checkbox, you can create a custom component:
export function MyCheckbox({ className, ... }) {
return (
<input className={className} type='checkbox' {...}/>
);
}
PLASMIC.registerComponent(
MyCheckbox,
{
name: 'MyCheckbox',
...
}
)
Got it, thanks.