A page object for things that are not out yet (sealed, with tape over "Not yet available") or just shipped (open, the lid up at 28 degrees and the wood // block inside). The stencil is art, so put the product's name and status in the page's text too.
Example#
Usage#
Use a crate for products that are not out yet or just shipped: sealed with tape over "Not yet available", or open with the wood block inside. It is a page object in CSS 3D, beside a card or a section head.
- Props set the stencilled name, the line sticker and sealed or open.
- The status lives in text too: the stencil is lettering, never the only place the status appears.
Layer and volume#
Art beside a card or a section head. The wood prints the same at every volume; the line sticker follows the volume like every line ink.
Anatomy#
- CrateWood, print-shaded.
.mk-block-front - StencilThe name, lettering.
.mk-obj-stencil - Line stickerFollows the volume like every line ink.
.mk-obj-sticker - TapeSealed: tape over the lid.
.mk-tape-strip
Volume#
Quiet
Studio
Press
Rave
Content#
- Pair it with a literal status in the card: "In development", "Not yet available".
Do and don't#
Do
Don't
A sealed crate as the only sign that a product is not available yet.
Fidelities#
CSS 3D in the house pose, print-shaded like the blocks: the wood ramp's bands, its grain, the key line and a dotted contact shadow.
Performance#
Zero JavaScript; a handful of planes.
Gating#
None: it does not move.
Accessibility#
aria-hiddenart. The name and "Not yet available" are lettering, never the only place the status appears.
Props#
| Prop | Type | Default | Description |
|---|---|---|---|
name required | string | none | The stencilled name (art; say it in the page's text too). |
state | "open" | "sealed" | none | `open`: the lid up at 28°, the wood `//` block inside. |
line | Line | none | The line sticker on its side. |
note | string | "Not yet available"; art | The note under the name (default "Not yet available"; art). |
size | number | 32 | Block size, px (default 32: the crate is 4 × 2 × 2.5 blocks). |
className | string | none |
Tokens#
System tokens (7)
--mk-3d-key--mk-3d-shadow--mk-3d-wood-deep--mk-3d-wood-fill--mk-3d-wood-light--mk-3d-wood-shade--mk-font-display
Its own properties (1)
--mk-s
Changelog#
Arrived in 0.9.0.
- Three: the alphabet twins at every fidelity (model, SVG, CSS 3D, GL geometry, physics shapes; Rave's MORE BLOCKS rains them), the
row,topple,twins,stack-1/2/3,line-k/r/a/mandwoodarrangements with their text alternatives, the page objectsCrate,PlanPlate,Slot,SampleCaseandBaseplate,BlockLoader,Topple404,BuildOnScroll, the house camera and an id-colour parity mode in poster frames, the wood grain in GL, specks and Shake, the phone's tap-to-play light rung with "Done", andInkFieldMaterial(the field backdrop in the stage's own canvas). Read the whole entry