All checks were successful
Deploy Docs to Synology / deploy (push) Successful in 4s
22 lines
828 B
JavaScript
22 lines
828 B
JavaScript
// components/Card.js
|
|
import { h } from "sigpro";
|
|
|
|
export const Card = (props, children) => {
|
|
children === undefined && (children = props, props = {});
|
|
return h("div", { ...props, class: `card ${props.class ?? ''}` }, children);
|
|
};
|
|
|
|
export const CardTitle = (props, children) => {
|
|
children === undefined && (children = props, props = {});
|
|
return h("div", { ...props, class: `card-title ${props.class ?? ''}` }, children);
|
|
};
|
|
|
|
export const CardBody = (props, children) => {
|
|
children === undefined && (children = props, props = {});
|
|
return h("div", { ...props, class: `card-body ${props.class ?? ''}` }, children);
|
|
};
|
|
|
|
export const CardActions = (props, children) => {
|
|
children === undefined && (children = props, props = {});
|
|
return h("div", { ...props, class: `card-actions ${props.class ?? ''}` }, children);
|
|
}; |