UNPKG

@oruga-ui/oruga-next

Version:

UI components for Vue.js and CSS framework agnostic

1 lines 833 B
{"version":3,"file":"PlainButton-CmWhB9Nw.mjs","sources":["../../src/components/utils/PlainButton.ts"],"sourcesContent":["import { createVNode, type FunctionalComponent } from \"vue\";\n\n/**\n * Acts much like a regular `<button>` element except that its type defaults to \"button\" even inside forms\n *\n * Useful as a default tag for components that use custom action buttons\n */\nconst PlainButton: FunctionalComponent = (props, { slots, attrs }) =>\n createVNode(\n \"button\",\n {\n type: \"button\",\n ...props,\n ...attrs,\n },\n slots.default?.(),\n );\nexport default PlainButton;\n"],"names":[],"mappings":";;AAOA,MAAM,cAAmC,CAAC,OAAO,EAAE,OAAO,YACtD;AAAA,EACI;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,GAAG;AAAA,IACH,GAAG;AAAA,EAAA;AAAA,EAEP,MAAM,UAAA;AACV;"}