Skip to content

feat(preview): Add interactive ModalPreview component#665

Open
Copilot wants to merge 1 commit intomainfrom
copilot/modal-preview-component
Open

feat(preview): Add interactive ModalPreview component#665
Copilot wants to merge 1 commit intomainfrom
copilot/modal-preview-component

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 10, 2026

The Modal component docs only had a static HTML code block. This adds a live interactive preview matching the pattern established by DrawerPreview.

Changes

  • src/components/previews/components/Modal.tsx — New preview component with an "Open Modal" trigger button, editable _label, _width, and slot content properties, HTML sanitization via sanitizeHtml
  • i18n/de/code.json / i18n/en/code.json — Added preview.component.modal.{label,content,openButton} translation keys in both locales
  • docs/30-components/modal.mdx / i18n/en/.../modal.mdx — Replaced static HTML code block with <ModalPreview codeCollapsable codeCollapsed />, removed tags: frontmatter, added explicit ## API and ## Beispiele/## Examples headings

Preview usage

<ModalPreview
  codeCollapsable
  codeCollapsed
/>

Copilot AI linked an issue Apr 10, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Add modal preview component based on drawer feat(preview): Add interactive ModalPreview component Apr 10, 2026
Copilot AI requested a review from laske185 April 10, 2026 07:47
@laske185 laske185 force-pushed the copilot/modal-preview-component branch from a56dd23 to fb86fe6 Compare April 10, 2026 08:20
@laske185 laske185 marked this pull request as ready for review April 10, 2026 08:20
@github-actions
Copy link
Copy Markdown

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.

Modal-Preview

2 participants