Row
interface RowProps extends RowDefinition {
children: React.ReactNode;
sidebar: React.ReactNode;
}
function Row(props: RowProps) {
const { setNodeRef, rowWrapperStyle, rowStyle, rowSidebarStyle } = useRow({
id: props.id,
});
return (
<div style={rowWrapperStyle}>
<div style={rowSidebarStyle}>{props.sidebar}</div>
<div ref={setNodeRef} style={rowStyle}>
{props.children}
</div>
</div>
);
}Usage
Last updated