Using MDX at Happy Billiard

This theme comes with the @astrojs/mdx integration installed and configured in your astro.config.mjs config file. If you prefer not to use MDX, you can disable support by removing the integration from your config file.
Why MDX?
MDX is a special flavor of Markdown that supports embedded JavaScript & JSX syntax. This unlocks the ability to mix JavaScript and UI Components into your Markdown content for things like interactive charts or alerts.
If you have existing content authored in MDX, this integration will hopefully make migrating to Astro a breeze.
Example
Here is how you import and use a UI component inside of MDX.
When you open this page in the browser, you should see the clickable button below.
Embedded component in MDX
More Links
- MDX Syntax Documentation
- Astro Usage Documentation
- Note: Client Directives are still required to create interactive components. Otherwise, all components in your MDX will render as static HTML (no JavaScript) by default.
Latest Post
GamingJohn Helton
Welcome to Happy Billiard: Where Fun Comes Alive
Step into Happy Billiard and discover a world of entertainment. From pool tables to arcade games, KTV rooms, and more—we have something for everyone.
Tips & GuidesJohn Helton
How to Host the Ultimate Game Night at Happy Billiard
Planning a game night? Discover tips for booking the right tables, choosing games for your group, and making the most of your visit.
EventsJohn Helton
Why Happy Billiard Is the Perfect Spot for Team Building and Parties
Looking for a fun team building venue? Happy Billiard offers private rooms, group games, and a lively atmosphere for corporate and social events.