DuyTa's picture
Upload folder using huggingface_hub
bc20498 verified
import { addMeltEventListener, makeElement } from '../../internal/helpers/index.js';
export function createLabel() {
const root = makeElement('label', {
action: (node) => {
const mouseDown = addMeltEventListener(node, 'mousedown', (e) => {
if (!e.defaultPrevented && e.detail > 1) {
e.preventDefault();
}
});
return {
destroy: mouseDown,
};
},
});
return {
elements: {
root,
},
};
}