Buckets:
| // @ts-nocheck | |
| import * as mod from "./font" | |
| const docs = `### Overview | |
| Uses native system font stacks for sans and mono typography. | |
| Optional compatibility component. Existing roots can keep rendering it, but it does nothing. | |
| ### API | |
| - No props. | |
| ### Variants and states | |
| - No variants. | |
| ### Behavior | |
| - Compatibility wrapper only. No font assets are injected or preloaded. | |
| ### Accessibility | |
| - Not applicable. | |
| ### Theming/tokens | |
| - Theme tokens come from CSS variables, not this component. | |
| ` | |
| export default { | |
| title: "UI/Font", | |
| id: "components-font", | |
| component: mod.Font, | |
| tags: ["autodocs"], | |
| parameters: { | |
| docs: { | |
| description: { | |
| component: docs, | |
| }, | |
| }, | |
| }, | |
| } | |
| export const Basic = { | |
| render: () => ( | |
| <div style={{ display: "grid", gap: "8px" }}> | |
| <mod.Font /> | |
| <div style={{ "font-family": "var(--font-family-sans)" }}>OpenCode Sans Sample</div> | |
| <div style={{ "font-family": "var(--font-family-mono)" }}>OpenCode Mono Sample</div> | |
| </div> | |
| ), | |
| } | |
Xet Storage Details
- Size:
- 1.01 kB
- Xet hash:
- af86753ad1d1e02a7b70086123fa0d130179caee698dcdbb186eb29f07b23a25
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.