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