This commit is contained in:
6
components/button.js
Normal file
6
components/button.js
Normal file
@@ -0,0 +1,6 @@
|
||||
import { Tag } from "sigpro";
|
||||
|
||||
export const Button = (props, children) => {
|
||||
children === undefined && (children = props, props = {});
|
||||
return Tag("button", { ...props, class: `btn ${props.class ?? ''}` }, children);
|
||||
};
|
||||
Reference in New Issue
Block a user