World archive presentation with explicit preview and remove actions.
Preview
Usage
The example reports preview activations and removes/restores the attachment in local state. Supply an aria-label to AttachmentTrigger and each icon-only AttachmentAction. The component does not upload or process files.
Composition
Compose Media, Content, Title and Description, then Trigger and Actions. Empty Media uses the packaged world thumbnail. Root defaults to state done, horizontal orientation, scale 2 and default size. selected and disabled are independent props; disabled cancels attachment interactions.
Interaction and limits
States idle/uploading/processing/error/done describe presentation only. Your application owns upload progress, file permissions and backend effects. Custom media and attachment action layout are web compositions; the copied example requires no external thumbnail server.
Installation
Component source
This is the component implementation. Its supporting styles, helpers and resources are also required. See complete manual installation.
"use client";
import * as React from "react";
import { Button } from "./button";
import { MinecraftItemMedia } from "./minecraft-item-media";
import { MinecraftItemText } from "./minecraft-item-text";
import type { MinecraftItemTextProps } from "./minecraft-item-text";
import {
minecraftClasses as cn,
minecraftStyle,
MinecraftRender,