Brand and content
Sticker
Attributed sticker figure with required alternative text.
Live example
🦊 cofob.dev
Source: PhSilver sticker pack

🦊 cofob.dev
Source: PhSilver sticker pack

🦊 cofob.dev
Source: PhSilver sticker pack
Usage
Each example includes the complete adapter-specific parameter reference. Copy it as a starting point, then remove options your use case does not need.
React
import { Sticker } from "@cofob/design-system-react";
/**
* Complete Sticker parameter reference.
* @param tone
* type: "neutral" | "accent" | "info" | "success" | "warning" | "danger"
* default: "neutral"
* example: "success"
* @param rotation
* type: -6 | -3 | 0 | 3 | 6
* default: -3
* example: -3
* @param children
* type: ReactNode | Svelte Snippet | child HTML
* default: —
* example: children / snippet / child HTML
* @param data-image
* type: "true" when the sticker contains an image
* default: —
* example: data-image="true"
* @param span attributes
* type: native element attributes
* default: —
* example: class / style / aria-* / data-*
*/
export function StickerExample() {
return (
<figure><Sticker data-image="true"><img src="/sticker.webp" alt="A delighted fox" /></Sticker><figcaption>Source: …</figcaption></figure>
);
}Svelte
<script lang="ts">
import { Sticker } from "@cofob/design-system-svelte";
// Complete Sticker parameter reference.
// tone
// type: "neutral" | "accent" | "info" | "success" | "warning" | "danger"
// default: "neutral"
// example: "success"
// rotation
// type: -6 | -3 | 0 | 3 | 6
// default: -3
// example: -3
// children
// type: ReactNode | Svelte Snippet | child HTML
// default: —
// example: children / snippet / child HTML
// data-image
// type: "true" when the sticker contains an image
// default: —
// example: data-image="true"
// span attributes
// type: native element attributes
// default: —
// example: class / style / aria-* / data-*
</script>
<figure><Sticker data-image="true"><img src="/sticker.webp" alt="A delighted fox" /></Sticker><figcaption>Source: …</figcaption></figure>HTML
<!--
Complete Sticker parameter reference.
tone
type: "neutral" | "accent" | "info" | "success" | "warning" | "danger"
default: "neutral"
example: "success"
rotation
type: -6 | -3 | 0 | 3 | 6
default: -3
example: -3
children
type: ReactNode | Svelte Snippet | child HTML
default: —
example: children / snippet / child HTML
data-image
type: "true" when the sticker contains an image
default: —
example: data-image="true"
span attributes
type: native element attributes
default: —
example: class / style / aria-* / data-*
-->
<figure><span class="cf-sticker" data-image="true"><img src="/sticker.webp" alt="A delighted fox" /></span><figcaption>Source: …</figcaption></figure>
<script type="module">
import { initDesignSystem } from "@cofob/design-system-css";
const designSystem = initDesignSystem(document);
window.addEventListener("pagehide", () => designSystem.destroy(), { once: true });
</script>Parameters
Adapter differences are explicit. Native element attributes are forwarded in React and Svelte and can be written directly in HTML.
| Parameter | Type | Default | Adapters | Example | Description |
|---|---|---|---|---|---|
tone | "neutral" | "accent" | "info" | "success" | "warning" | "danger" | "neutral" | React · Svelte · HTML | "success" | Applies semantic color intent without hard-coded colors. |
rotation | -6 | -3 | 0 | 3 | 6 | -3 | React · Svelte · HTML | -3 | Small tokenized decorative rotation. |
children | ReactNode | Svelte Snippet | child HTML | — | React · Svelte · HTML | children / snippet / child HTML | Idiomatic adapter composition content. |
data-image | "true" when the sticker contains an image | — | React · Svelte · HTML | data-image="true" | Removes label-like padding when Sticker wraps an attributed image. |
span attributes | native element attributes | — | React · Svelte · HTML | class / style / aria-* / data-* | Forwards native class/style, accessibility, event, and data attributes to the root element. |