The bare desk
Sage bookcloth under a lamp. Paper lies on it with a short umber shadow and the light from the upper left.
The surface everything else lies on: sage bookcloth under a lamp (linen weave, mottling, a warm vignette), with an optional layer of objects behind your content: a coffee ring, a pencil, paper clips, a ruler, push-pins. Paper is only paper against something darker than itself.
npx shadcn@latest add @wobko/desk第一次使用?先把 registry 加进 components.json。 如何安装
Sage bookcloth under a lamp. Paper lies on it with a short umber shadow and the light from the upper left.
`objects` lays a coffee ring, a pencil, paper clips, a ruler and push-pins behind your content. Pick some or take them all.
The vignette darkens toward the corners. `lamp={0}` is a flat blotter, `1` the theme's own (a whisper of shade), `2.5` a dim room.
A whole workspace: a punched page, an index card taped up and two sticky notes, with the pencil and the coffee ring behind them.
A `div` with the `ll-desk` surface. It brings the two desk textures with it (a deduplicated `<style>` each, also in server markup), so it works without a provider.
| 属性 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| as | "div" | "main" | "section" | "article" | "div" | The element. |
| objects | DeskObject[] | boolean | false | Things lying on the blotter behind the content: `coffee`, `pencil`, `clips`, `ruler`, `pins`. `true` is all five. Hidden below the `sm` breakpoint and in calm density. |
| lamp | number | boolean | 1 | Strength of the vignette: 0 (or false) removes it, 1 is the theme's own (a whisper of shade), above 1 darkens the corners quickly (2.5 is a dim room). |
| seed | string | number | - | Pins the hand of the objects. |
The layer of objects on its own: absolutely positioned, aria-hidden, clipped to its container. Place it in any relative container; `Desk` mounts it for you.
| 属性 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| objects | DeskObject[] | - | Which objects to lay out. |
| seed | string | number | - | Pins the hand. |
CLI 会复制进你项目的文件。
正在加载源码