This commit is contained in:
22
components/card.js
Normal file
22
components/card.js
Normal file
@@ -0,0 +1,22 @@
|
||||
// components/Card.js
|
||||
import { Tag } from "sigpro";
|
||||
|
||||
export const Card = (props, children) => {
|
||||
children === undefined && (children = props, props = {});
|
||||
return Tag("div", { ...props, class: `card ${props.class ?? ''}` }, children);
|
||||
};
|
||||
|
||||
export const CardTitle = (props, children) => {
|
||||
children === undefined && (children = props, props = {});
|
||||
return Tag("div", { ...props, class: `card-title ${props.class ?? ''}` }, children);
|
||||
};
|
||||
|
||||
export const CardBody = (props, children) => {
|
||||
children === undefined && (children = props, props = {});
|
||||
return Tag("div", { ...props, class: `card-body ${props.class ?? ''}` }, children);
|
||||
};
|
||||
|
||||
export const CardActions = (props, children) => {
|
||||
children === undefined && (children = props, props = {});
|
||||
return Tag("div", { ...props, class: `card-actions ${props.class ?? ''}` }, children);
|
||||
};
|
||||
Reference in New Issue
Block a user