useRow
Last updated
Last updated
A hook to declare a timeline row.
Use this hook to declare an HTML element as a row in the timeline.
id
A unique id for this row. This id will later be used to bind items to rows.
disabled?
data?
Custom data that can be passed to the row.
🧠This can be passed to rows to identify their type. This type can later be used in the event callbacks to apply different behaviors to different row types.
rowWrapperStyle
Basic styles that must be applied to the row container element.
rowStyle
Basic styles that must be applied to the row element.
rowSidebarStyle
Basic styles that must be applied to the row sidebar element.
setSidebarRef
A ref that must be passed to the sidebar element.
All of dnd-kit api are returned as well.