Atelier UI

搜索组件…

搜索组件…

Inspector Panel

从右侧滑入的非模态详情面板,含标签页、属性行与固定按钮。

在沙盒中编辑

复制一段给 AI 编程工具的提示词,包含源码、依赖和用法

属性

InspectorPanelProps

同时支持以下类型的全部属性: Omit<React.ComponentProps<"aside">, "title">

属性类型默认值说明
open* 必填boolean——
onOpenChange* 必填(open: boolean) => void——
title* 必填React.ReactNode——
subtitleReact.ReactNode——
iconReact.ReactNode——
properties* 必填InspectorProperty[]——
activityInspectorActivity[][]—
pinnablebooleantrueShow the pin button. Pinned panels ignore outside clicks.
pinnedboolean——
defaultPinnedbooleanfalse—
onPinnedChange(pinned: boolean) => void——
widthnumber360Panel width in px on screens wider than 640px; below that it is a full-width sheet
fixedbooleanfalseUse viewport positioning instead of the nearest positioned ancestor

安装

$ npx shadcn@latest add https://chromotion.dev/r/inspector-panel.json

同类组件