Task side panel
A record’s detail beside the page: its properties, subtasks, tabs over an activity timeline, and keyboard hints.
A panel opens over any screen and keeps its own look in every direction: it has no direction of its own.
npx wideset add block-task-sidepanel
Import the default export from @/blocks/wideset/task-sidepanel. The files below are relative to your project's source directory.
Installed with this block
avatarblock-stylesbuttoncheckboxicon-buttonprogress-barsidepanelstatus-badgeswitchtabstagutils
blocks/wideset/task-sidepanel/index.tsx
'use client';
import '@/styles/wideset-blocks.css';
import { Button } from '@/components/ui/wideset/button/Button';
import { useState } from 'react';
import { task } from './data';
import { TaskSidepanel } from './task-sidepanel';
/** Task side panel: a record's detail beside the page, here over an empty page that reopens it. */
export default function TaskSidepanelBlock() {
const [open, setOpen] = useState(true);
return (
<div className="ws-block-utility bg-ws-static-foreground flex h-dvh items-center justify-center">
<Button variant="secondary" preset="border" onClick={() => setOpen(true)}>
Open task
</Button>
<TaskSidepanel task={task} open={open} onOpenChange={setOpen} />
</div>
);
}