Skip to content

feat(component): add hexagon pattern component #940

Merged
Yeom-JinHo merged 4 commits intomagicuidesign:mainfrom
chishiyac:feat/add-hexagon-pattern
Apr 7, 2026
Merged

feat(component): add hexagon pattern component #940
Yeom-JinHo merged 4 commits intomagicuidesign:mainfrom
chishiyac:feat/add-hexagon-pattern

Conversation

@chishiyac
Copy link
Copy Markdown
Contributor

Description

This PR adds the Hexagon Pattern component: a reusable SVG-based honeycomb background that can be styled with Tailwind CSS. It ships with four registry examples (default demo, linear gradient fill, dashed strokes, and spacing/gap), full Magic UI registry entries and generated public/r JSON, documentation at hexagon-pattern.mdx (including CLI and manual install), sidebar/docs config updates, and LLM-facing doc updates in llms.txt / llms-full.txt.

Changes

  • Component: New HexagonPattern in registry/magicui/hexagon-pattern.tsx with props such as radius, gap, direction (horizontal/vertical), strokeDasharray, optional highlighted hexagons, and standard SVG/className passthrough.
  • Examples: hexagon-pattern-demo, hexagon-pattern-linear-gradient, hexagon-pattern-dashed, and hexagon-pattern-spacing under registry/example/, wired in registry-examples.ts and preview index.
  • Registry: Entries in registry-ui.ts, registry/__index__.tsx, and root/public registry.json files plus per-block JSON under public/r/.
  • Docs: New content/docs/components/hexagon-pattern.mdx and config/docs.ts update for navigation.
  • LLM docs: public/llms.txt and public/llms-full.txt updated to include the new component.

Motivation

Magic UI already offers grid-style patterns; this fills the same role for hexagonal/honeycomb layouts so users can drop in a consistent, accessible SVG pattern without custom geometry, with examples that show common styling (gradients, dashes, spacing).

Breaking Changes

None.

Screenshots

Device / browser / viewport: e.g. Chrome · macOS · 1440×900 — adjust to match your capture

Demo — default

Hexagon Pattern — default demo

Linear gradient

Hexagon Pattern — linear gradient fill

Dashed stroke

Hexagon Pattern — dashed stroke

Spacing

Hexagon Pattern — spacing between hexagons
Before After
N/A (new component) Hexagon Pattern docs with live preview; gradient, dashed, and spacing examples in the registry

…d documentation

- Introduced the Hexagon Pattern component, a customizable background pattern made with SVGs.
- Added multiple demo examples: Hexagon Pattern Demo, Hexagon Pattern Linear Gradient, Hexagon Pattern Dashed, and Hexagon Pattern Spacing.
- Updated registry and documentation to include the new component and its usage.
- Enhanced the main documentation to reflect the new component's features and installation instructions.
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 6, 2026

@chishiyac is attempting to deploy a commit to the product-studio Team on Vercel.

A member of the Team first needs to authorize it.

@Yeom-JinHo Yeom-JinHo self-requested a review April 6, 2026 12:00
Copy link
Copy Markdown
Member

@Yeom-JinHo Yeom-JinHo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chishiyac
Tysm, this looks awesome!!

I added a few follow-up commits for the remaining tweaks, but really appreciate the contribution here.

Thanks again for the great work.

@Yeom-JinHo Yeom-JinHo merged commit 470256f into magicuidesign:main Apr 7, 2026
5 of 6 checks passed
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.

2 participants