Skip to content

feat(preview): Add interactive NavPreview component#666

Open
Copilot wants to merge 2 commits intomainfrom
copilot/update-nav-component-preview
Open

feat(preview): Add interactive NavPreview component#666
Copilot wants to merge 2 commits intomainfrom
copilot/update-nav-component-preview

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 10, 2026

Adds an interactive preview component for KolNav and migrates the Nav documentation away from the static LiveEditorCompact/Configurator approach.

Changes

  • src/components/previews/components/Nav.tsx — New NavPreview component exposing _label, _hasCompactButton, and _orientation as interactive controls. _links is managed via a JSON textarea (same pattern as ToolbarPreview/_items) with parse-error feedback.
  • i18n/de/code.json / i18n/en/code.json — Added preview.component.nav.label translation key.
  • docs/30-components/nav.mdx / i18n/en/.../nav.mdx — Replaced static ### Code + ### Beispiel blocks and removed ## Live-Editor section; now renders <NavPreview> in ## Konstruktion. Removed tags: frontmatter per doc conventions.

Usage in MDX

<NavPreview
  visibleProperties={['_label', '_hasCompactButton', '_orientation']}
  codeCollapsable
  codeCollapsed
/>

Copilot AI linked an issue Apr 10, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Fix navigation preview issues feat(preview): Add interactive NavPreview component Apr 10, 2026
Copilot AI requested a review from laske185 April 10, 2026 07:53
@laske185 laske185 force-pushed the copilot/update-nav-component-preview branch from 14a32f0 to 91a734c Compare April 10, 2026 08:23
@laske185 laske185 marked this pull request as ready for review April 10, 2026 08:23
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 10, 2026

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.

Nav-Preview

2 participants