No description
  • TypeScript 97.3%
  • CSS 2.1%
  • JavaScript 0.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Alois 67824c6bc8
All checks were successful
/ deploy-and-package (push) Successful in 1m18s
feat(markdown): improve tensamin specific styles
feat(general): bump version
2026-08-09 22:26:55 +02:00
.forgejo/workflows (fix): workflow 2026-07-26 15:35:59 +02:00
apps/showcase chore(deps): update repo + other random stuff in markdown 2026-08-09 22:23:17 +02:00
scripts feat(markdown): add markdown 2026-08-09 20:54:00 +02:00
src feat(markdown): improve tensamin specific styles 2026-08-09 22:26:55 +02:00
.gitignore Migrate tensamin/ui to methanium/ui 2026-07-25 13:09:54 +02:00
components.json Migrate tensamin/ui to methanium/ui 2026-07-25 13:09:54 +02:00
LICENSE Migrate tensamin/ui to methanium/ui 2026-07-25 13:09:54 +02:00
package.json feat(markdown): improve tensamin specific styles 2026-08-09 22:26:55 +02:00
pnpm-lock.yaml chore(deps): update repo + other random stuff in markdown 2026-08-09 22:23:17 +02:00
pnpm-workspace.yaml feat(markdown): add markdown 2026-08-09 20:54:00 +02:00
README.md feat(markdown): add markdown 2026-08-09 20:54:00 +02:00
renovate.json Add renovate.json 2026-08-05 20:16:54 +02:00
tsconfig.build.json Migrate tensamin/ui to methanium/ui 2026-07-25 13:09:54 +02:00
tsconfig.json Migrate tensamin/ui to methanium/ui 2026-07-25 13:09:54 +02:00

Methanium UI

pnpm install https://git.methanium.net/methanium/ui/releases/download/latest/methanium-ui.tgz

Markdown

The renderer is available from the package root. The live editor, compact text renderer, and emoji APIs use the @methanium/ui/markdown entry point.

import { Markdown } from "@methanium/ui";
import {
  EmojiProvider,
  Input,
  createEmojiRegistry,
} from "@methanium/ui/markdown";

const registry = createEmojiRegistry({
  customEmojis: [
    {
      shortcode: ":party_parrot:",
      aliases: [":parrot_party:"],
      src: "/emoji/party-parrot.webp",
    },
  ],
});

<EmojiProvider registry={registry}>
  <Input value={value} setValue={setValue} />
  <Markdown content={value} />
</EmojiProvider>;

Custom shortcodes and aliases must be unique and may not collide with built-in Twemoji names. Twemoji graphics are bundled locally and do not use a CDN. The graphics are provided by the Twemoji project under CC-BY 4.0; code is licensed under MIT.