Input has not been changed.
<label class="ps" for="ps-1">
<span class="ps__label">
Display name
<span class="ps__flag ps__flag--text" style="--accent:#BFD9F2;">Unchanged</span>
</span>
<input class="ps__input" id="ps-1" type="text" value="Steven J." style="--accent:#BFD9F2;">
</label>
<style>
.ps { display: block; font: 14px system-ui, sans-serif; color: #241430; max-width: 260px; }
.ps__label { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-weight: 500; }
.ps__flag { font-size: 11px; font-weight: 600; color: #24143080; }
.ps__flag--badge { padding: 2px 6px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 30%, transparent); color: #241430; }
.ps__input { width: 100%; box-sizing: border-box; padding: 10px 12px; font: inherit; color: #241430; background: #FAF7F2; border: 1.5px solid #24143040; border-radius: 8px; }
.ps__input:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
</style><label class="block max-w-[260px] font-sans text-sm text-[#241430]" for="ps-tw-1">
<span class="flex items-center gap-1.5 mb-1.5 font-medium">
Display name
<span class="ps-tw-flag ps-tw-flag--text text-[11px] font-semibold text-[#24143080]" style="--accent:#BFD9F2;">Unchanged</span>
</span>
<input id="ps-tw-1" type="text" value="Steven J." class="w-full box-border px-3 py-2.5 bg-[#FAF7F2] border-[1.5px] border-[#24143040] rounded-lg focus-visible:outline-none" style="border-color:#BFD9F2;">
</label>
<style>
.ps-tw-flag--badge { padding: 2px 6px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 30%, transparent); color: #241430; }
</style>export function PristineState({
label = "Display name",
value = "Steven J.",
pristine = true,
indicator = "text",
accent = "#BFD9F2",
}) {
return (
<label style={{ display: "block", maxWidth: 260, fontFamily: "system-ui, sans-serif", fontSize: 14, color: "#241430" }}>
<span style={{ display: "flex", alignItems: "center", gap: 6, marginBottom: 6, fontWeight: 500 }}>
{label}
{pristine && (
<span style={{
fontSize: 11, fontWeight: 600, color: indicator === "badge" ? "#241430" : "#24143080",
padding: indicator === "badge" ? "2px 6px" : 0,
borderRadius: indicator === "badge" ? 999 : 0,
background: indicator === "badge" ? `color-mix(in srgb, ${accent} 30%, transparent)` : "none",
}}>
Unchanged
</span>
)}
</span>
<input type="text" defaultValue={value} style={{
width: "100%", boxSizing: "border-box", padding: "10px 12px", font: "inherit", color: "#241430",
background: "#FAF7F2", border: `1.5px solid ${accent}`, borderRadius: 8,
}} />
</label>
);
}