2023-04-19 22:44:06 +02:00
|
|
|
const Card = (child, opts = { vertical: false }) =>
|
2023-05-29 16:22:34 +02:00
|
|
|
h(
|
|
|
|
"span",
|
|
|
|
{
|
|
|
|
className:
|
|
|
|
"relative flex border border-slate-400 focus-within:border-blue-800 dark:focus-within:border-blue-100 focus-within:bg-slate-100 dark:focus-within:bg-slate-800 hover:bg-slate-100 dark:hover:bg-slate-800 pb-3 cursor-text group/active top-3 bottom-3" +
|
|
|
|
(opts.vertical ? " flex-col" : ""),
|
|
|
|
},
|
|
|
|
child
|
|
|
|
);
|
2023-04-19 22:44:06 +02:00
|
|
|
|
|
|
|
export default Card;
|