Grid Newspaper
A magical, vintage newspaper layout component utilizing a highly complex and responsive CSS Grid. It perfectly adapts from a multi-column desktop spread to a single-column mobile view, allowing articles to dynamically span rows and columns.
The Daily Prophet
More than 500 million copies of the Harry Potter books sold
Twenty years ago, readers around the world first discovered the magical story of Harry Potter, created by J.K. Rowling. We can now reveal that, since that moment, half a billion Harry Potter books have now been sold. On average, this means one in fifteen people in the world owns a Harry Potter book. The 500 million sales are across the seven books in the series and the three companion volumes, in print and eBook versions.
First published by Bloomsbury in 1997, the books have now been translated into over 80 different languages across the world, with more to come. From Albanian to Azerbaijani to Hebrew to Hawaiian, the stories are becoming accessible to more people all the time.
Hot News!
Installation
npx shadcn-extras@latest add grid-newspaper
Props
The GridNewspaperArticle component accepts the following props:
| Prop | Type | Description |
|---|---|---|
withBorder | boolean | If true, applies a top border to the article block. |
hoverImage | boolean | If true, any images inside the block will transition from grayscale to full color on hover. |
hoverBg | boolean | If true, the block's background will transition to black and text will transition to white on hover. |
Note: Layout spanning (like col-span-2 or row-span-2) is handled using standard Tailwind CSS classes passed to the className prop, enabling unlimited customization.
Features
- Harnesses the full power of CSS Grid for complex, masonry-style layouts.
- Imports
EB Garamond,Playfair Display SC, andManropefonts. - Built-in
gn-multi-column-2utility class for internal text column breaks.


