Astro components, no React
The parts every content site needs, written as plain .astro files: the head tags, structured data, navigation, long-form text, Sanity's Portable Text, and the feeds. They render to HTML at build time and ship no JavaScript, except a few lines for the copy button and the theme toggle.
Free and MIT, with no account. Install one with the shadcn CLI or copy its files. They use shadcn/ui's token names, so they match a project set up with npx shadcn init.
SEO
Navigation
- BreadcrumbsFreeWhere the page sits, as links, with the BreadcrumbList structured data. The current page carries aria-current.Breadcrumbs.astro
- PaginationFreeNumbered pages with previous and next for an archive from paginate(). 36px controls, gaps as an ellipsis.Pagination.astro
- Table of contentsFreeOn this page: links to the h2 and h3 of an article, from Markdown headings or Portable Text.Toc.astro · headings.ts
- Skip linkFreeA link to the main content that appears on keyboard focus, as the first thing in the body.SkipLink.astro
Content
- FigureFreeAn image with a caption. Width, height and alt are required, so the page never jumps; local images go through astro:assets.Figure.astro
- ProseFreeLong-form text in a 65-character measure on shadcn's tokens: headings, lists, quotes, tables, code and images, light and dark.Prose.astro · prose.css
- Code blockFreeCode highlighted at build time with Shiki, light and dark, with a file name and a copy button.CodeBlock.astro
- Portable TextFreeSanity's Portable Text as HTML through astro-portabletext, with headings that carry ids, links, images and code blocks.PortableText.astro · Heading.astro · Link.astro · Image.astro · Code.astro
- DateFreeA date people can read, with the machine-readable value in datetime, formatted at build time.Time.astro
Site
- Theme toggleFreeA 36px button that switches light and dark and remembers the choice, plus the head script that prevents a flash.ThemeToggle.astro · ThemeScript.astro
- RSS feedFreeAn /rss.xml endpoint from a content collection with @astrojs/rss.rss.xml.ts
- llms.txtFreeAn /llms.txt endpoint that lists your pages and posts for AI tools, built from your collections.llms.txt.ts
- robots.txtFreeA /robots.txt endpoint with your sitemap's address and the paths to keep out of search.robots.txt.ts
And the React blocks?
Every block and component in the store also works in Astro through @astrojs/react. Without a client directive they render to plain HTML on the server too; only the ones with state need one. See themes.dev for Astro.