Snippet

Static, syntax-highlighted code display with a copy action.

Installation

bun add elia
@import "tailwindcss";
@import "@aile.sh/elia/styles/elia.css";
@source "../node_modules/@aile.sh/elia";

Usage

import { Snippet } from "@aile.sh/elia";

export function Example() {
  return (
    <Snippet
      file="rent.ts"
      lang="ts"
      code={'const key = await aile.rent("sprinkles-5");\nconsole.log(key.limit); // 100_000'}
    />
  );
}

— elia design system · MIT · base · https://github.com/aile-sh/elia