Skip to main content

Render Line

Below is an example that allows you to render your custom Line component using Planby's style components.

Available props in Line

PropertyTypeDescriptionStatus
isVerticalModebooleanVertical modeoptional
isTimelinebooleanVertical modeoptional
stylesobjectObject contains position stylesoptional
import { Line } from "@nessprim/planby-pro";

export function CustomLine({ styles }: Line) {
return (
<div
style={{
...styles.position,
background: "red",
pointerEvents: "none",
}}
/>
);
}