Before repair nav components
All checks were successful
Deploy Docs to Synology / deploy (push) Successful in 4s
All checks were successful
Deploy Docs to Synology / deploy (push) Successful in 4s
This commit is contained in:
12
components/discarted/timeline.js
Normal file
12
components/discarted/timeline.js
Normal file
@@ -0,0 +1,12 @@
|
||||
// components/Timeline.js
|
||||
import { h } from "sigpro";
|
||||
|
||||
export const Timeline = (props, children) => {
|
||||
children === undefined && (children = props, props = {});
|
||||
const vertical = props.vertical !== false;
|
||||
const compact = props.compact === true;
|
||||
return h("ul", {
|
||||
...props,
|
||||
class: `timeline ${vertical ? 'timeline-vertical' : 'timeline-horizontal'} ${compact ? 'timeline-compact' : ''} ${props.class ?? ''}`.trim()
|
||||
}, children);
|
||||
};
|
||||
Reference in New Issue
Block a user