// Generated by scripts/generate-showcase.mjs. Do not edit directly. page CopyMarkupDetail { layout = "showcase" state playground_size = ctx.url.searchParams.get("pg_size") ?? "default" state playground_color = ctx.url.searchParams.get("pg_color") ?? "primary" state playground_label = ctx.url.searchParams.get("pg_label") ?? "Copy Markup" state playground_name = ctx.url.searchParams.get("pg_name") ?? "" state playground_value = ctx.url.searchParams.get("pg_value") ?? "sample-1" state playground_placeholder = ctx.url.searchParams.get("pg_placeholder") ?? "Enter a sample value" state playground_type = ctx.url.searchParams.get("pg_type") ?? "text" state playground_min = ctx.url.searchParams.get("pg_min") ?? "" state playground_max = ctx.url.searchParams.get("pg_max") ?? "" state playground_step = ctx.url.searchParams.get("pg_step") ?? "" state playground_disabled = ctx.url.searchParams.get("pg_disabled") ?? "false" state playground_required = ctx.url.searchParams.get("pg_required") ?? "false" state playground_class = ctx.url.searchParams.get("pg_class") ?? "showcase-instance showcase-instance--1" seo { title = "Copy Markup" description = "Theme-aware, responsive copy markup component." } view {
Advanced Forms component

Copy Markup

Theme-aware, responsive copy markup component.

13 props0 slots3 eventsTheme readyResponsive
Interactive playground

Configure Copy Markup

Change any prop and inspect the server-rendered component immediately.

Live preview
Component code
<CopyMarkup
  value="sample-1"
  placeholder="Enter a sample value"
/>
Component props13 controls
Live examples

Designed for real product surfaces

Compare configurations and resize the browser to check responsive behavior.

Recommended

Production default

Balanced spacing, hierarchy, and content for the most common product workflow.

01
Live preview
Component usage.wrn
<CopyMarkup
  value="sample-1"
  placeholder="Enter a sample value"
/>
Dense UI

Compact application

A tighter variation for dashboards, side panels, tables, and operational interfaces.

02
Live preview
Component usage.wrn
<CopyMarkup
  size="sm"
  label="Compact example"
  value="sample-2"
  placeholder="Enter a sample value"
/>
Extended

Rich configuration

A more expressive variation using additional data, stronger emphasis, and optional states.

03
Live preview
Component usage.wrn
<CopyMarkup
  size="lg"
  label="Advanced example"
  value="sample-3"
  placeholder="Search by name, email, or identifier"
/>
Component events

Events

Public events declared by this component. Custom events bubble from the component root and expose state through event.detail.

@copyFires when the component emits the copy event.
@successFires when the component operation succeeds.
@errorFires when the component encounters an error.
Event listener.js
const component = document.querySelector('[data-wrn-events]')

component.addEventListener('copy', (event) => {
  console.log(event.detail)
})
Component API

Props and configuration

All content and behavior shown above is supplied through these props and slots.

PropTypeDefaultRequired
sizestring"default"No
colorstring"primary"No
labelstring"Copy Markup"No
namestring""No
valuestring""No
placeholderstring""No
typestring"text"No
minstring""No
maxstring""No
stepstring""No
disabledbooleanfalseNo
requiredbooleanfalseNo
classstring""No
} }