Skip to content

feat(code-block): add CodeBlock component - #51

Open
findleyl wants to merge 3 commits into
mainfrom
feat/code-block
Open

findleyl wants to merge 3 commits into
mainfrom
feat/code-block

Conversation

@findleyl

Copy link
Copy Markdown
Member

Summary

  • Adds CodeBlock, a shared block for commands and config snippets: optional header label, copy button with copied state, optional shell prompt markers that are excluded from the copied text, wrap and max-height options, header actions, and sm/md sizes.
  • Styles live in aster.css and use the existing surface, border, radius, and text tokens in light and dark themes, plus a --aster-code-font token for monospace text.
  • Bumps the package to 0.2.7 so Aster-Mail can consume it.

Notes

  • Aster-Mail's settings pages (Bridge CLI install, DNS records, MTA-STS, and others) switch to this component in a follow-up PR that bumps @aster/ui to 0.2.7. That PR needs 0.2.7 published to npm first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant