File size: 896 Bytes
9697ede | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | // @ts-nocheck
import * as mod from "./favicon"
const docs = `### Overview
Injects favicon and app icon meta tags for the document head.
Render once near the app root (head management).
### API
- No props.
### Variants and states
- Single configuration.
### Behavior
- Registers link and meta tags via Solid Meta components.
### Accessibility
- Not applicable.
### Theming/tokens
- Not applicable.
`
export default {
title: "UI/Favicon",
id: "components-favicon",
component: mod.Favicon,
tags: ["autodocs"],
parameters: {
docs: {
description: {
component: docs,
},
},
},
}
export const Basic = {
render: () => (
<div style={{ display: "grid", gap: "8px" }}>
<mod.Favicon />
<div style={{ color: "var(--text-weak)", "font-size": "12px" }}>
Head tags are injected for favicon and app icons.
</div>
</div>
),
}
|