1 GitHub star = 1 new component.

Full templates

Toy Store · Action figures

A comic-book toy store for action figures and collectibles, with shop-by-character filters, character pages and a gift finder by age.

Kapow is the third e-commerce template, built for toy shops selling action figures, vehicles, playsets and collector editions. Every product knows which characters it features, so shoppers can tap a hero or villain in the avatar rail — or combine character, universe, age group, scale, type and price in the sidebar — and the grid filters instantly with a shareable URL. Each character gets a roster card and a profile page with art, quote, bio and power levels plus all of their figures. Product pages add a figure file with scale, articulation, what is in the box and a safety warning. The look is a bold comic "toy box": thick ink outlines, hard shadows, halftone panels and Russo One type, in light and dark. It reuses the e-commerce kit — header, cart drawer, filters, toolbar, gallery, buy box, checkout and order summary — so the cart, promo codes and checkout work exactly like the other stores.

6 pages 23 components 7 sections 0 deps

Live preview

Pages

Every page is a real, interactive preview: links, forms and state work across pages.

Home

Comic hero, guarantees, shop by character, best sellers, universes, pre-order countdown, gift finder by age, new arrivals and collector club.

src/pages/index.astro

Shop & filters

Character avatar rail, sidebar facets (type, character, universe, age, scale, price, rating, stock), sort and live count — all in the URL.

src/pages/shop.astro

Characters

Trading-card roster with hero / villain and universe filters, universe tiles and gift finder.

src/pages/characters/index.astro

Character profile

Comic panel, quote, bio and power levels, every figure of the character, allies and rivals.

src/pages/characters/[id].astro

Product

Gallery, buy box with stock urgency, meet the character, figure file with articulation and what is in the box, reviews and related figures.

src/pages/product/[slug].astro

Checkout

Focus-mode checkout with steps, delivery, shipping, payment and a live order summary (try code KAPOW10).

src/pages/checkout.astro

What is included

  • 6 pages: home, shop, characters, character profile, product and checkout
  • Filter by character from an avatar rail or the sidebar — multi-select, URL-synced
  • Facets: character, universe, age group, scale, type, price, rating, stock
  • Character pages with quote, bio and power-level meters
  • Gift finder by age and budget, figure spec sheet with safety warning
  • Pre-orders, limited editions and a collector club with stamp card
  • Comic "toy box" look, light and dark mode
  • 7 sections in Sections → Toy Store + 2 new e-commerce components

Install & use

  1. Install the package

    bash
    npm install astro-component-kit
    npm install astro-component-kit
  2. Create one Astro page per template page

    src/pages/index.astro

    astro
    ---
    import { ToyHomePage } from 'astro-component-kit/templates/toy-store';
    ---
    
    <ToyHomePage />
    --- import { ToyHomePage } from 'astro-component-kit/templates/toy-store'; --- <ToyHomePage />

    src/pages/shop.astro

    astro
    ---
    import { ToyShopPage } from 'astro-component-kit/templates/toy-store';
    ---
    
    <!-- Shareable filters: /shop/?character=vex,raikou&age=kids&scale=6in&max=25 -->
    <ToyShopPage />
    --- import { ToyShopPage } from 'astro-component-kit/templates/toy-store'; --- <!-- Shareable filters: /shop/?character=vex,raikou&age=kids&scale=6in&max=25 --> <ToyShopPage />

    src/pages/characters/index.astro

    astro
    ---
    import { ToyCharactersPage } from 'astro-component-kit/templates/toy-store';
    ---
    
    <ToyCharactersPage />
    --- import { ToyCharactersPage } from 'astro-component-kit/templates/toy-store'; --- <ToyCharactersPage />

    src/pages/characters/[id].astro

    astro
    ---
    import { ToyCharacterPage, kapowStore } from 'astro-component-kit/templates/toy-store';
    
    export function getStaticPaths() {
      return kapowStore.characters.map((c) => ({ params: { id: c.id } }));
    }
    ---
    
    <ToyCharacterPage id={Astro.params.id} />
    --- import { ToyCharacterPage, kapowStore } from 'astro-component-kit/templates/toy-store'; export function getStaticPaths() { return kapowStore.characters.map((c) => ({ params: { id: c.id } })); } --- <ToyCharacterPage id={Astro.params.id} />

    src/pages/product/[slug].astro

    astro
    ---
    import { ToyProductPage, kapowStore } from 'astro-component-kit/templates/toy-store';
    
    export function getStaticPaths() {
      return kapowStore.products.map((p) => ({ params: { slug: p.slug } }));
    }
    ---
    
    <ToyProductPage slug={Astro.params.slug} />
    --- import { ToyProductPage, kapowStore } from 'astro-component-kit/templates/toy-store'; export function getStaticPaths() { return kapowStore.products.map((p) => ({ params: { slug: p.slug } })); } --- <ToyProductPage slug={Astro.params.slug} />

    src/pages/checkout.astro

    astro
    ---
    import { ToyCheckoutPage } from 'astro-component-kit/templates/toy-store';
    ---
    
    <ToyCheckoutPage />
    --- import { ToyCheckoutPage } from 'astro-component-kit/templates/toy-store'; --- <ToyCheckoutPage />
  3. Use your own catalogue, currency and routes

    Spread the demo store and replace what you need. Products accept a real image or one of 16 built-in illustrations.

    astro
    ---
    // src/pages/index.astro — pass the same store + routes to every page
    import { ToyHomePage, kapowStore, type ToyStore } from 'astro-component-kit/templates/toy-store';
    
    const store: ToyStore = {
      ...kapowStore,
      name: 'Hero Hangar',
      currency: 'EUR',
      locale: 'es-ES',
      cartKey: 'hero-hangar-cart',
      characters: [
        { id: 'nova', name: 'Nova', alias: 'Space ranger', universe: 'star-rangers', faction: 'hero', icon: 'figure', hue: 212,
          bio: '…', powers: [{ label: 'Speed', value: 8 }] },
      ],
      products: [
        { slug: 'nova-6in', name: 'Nova 6"', price: 24.99, category: 'figures',
          characters: ['nova'],          // ← powers the character filter and character pages
          scale: '6in', height: '15 cm', articulation: 28, ageMin: 4,
          accessories: ['Blaster', 'Stand'], image: '/toys/nova.webp' },   // or icon: 'figure'
      ],
    };
    ---
    
    <ToyHomePage
      store={store}
      theme="auto"
      routes={{ home: '/', shop: '/shop/', characters: '/characters/', character: '/characters/', product: '/product/', checkout: '/checkout/' }}
    />
    --- // src/pages/index.astro — pass the same store + routes to every page import { ToyHomePage, kapowStore, type ToyStore } from 'astro-component-kit/templates/toy-store'; const store: ToyStore = { ...kapowStore, name: 'Hero Hangar', currency: 'EUR', locale: 'es-ES', cartKey: 'hero-hangar-cart', characters: [ { id: 'nova', name: 'Nova', alias: 'Space ranger', universe: 'star-rangers', faction: 'hero', icon: 'figure', hue: 212, bio: '…', powers: [{ label: 'Speed', value: 8 }] }, ], products: [ { slug: 'nova-6in', name: 'Nova 6"', price: 24.99, category: 'figures', characters: ['nova'], // ← powers the character filter and character pages scale: '6in', height: '15 cm', articulation: 28, ageMin: 4, accessories: ['Blaster', 'Stand'], image: '/toys/nova.webp' }, // or icon: 'figure' ], }; --- <ToyHomePage store={store} theme="auto" routes={{ home: '/', shop: '/shop/', characters: '/characters/', character: '/characters/', product: '/product/', checkout: '/checkout/' }} />

New sections 7

Full-width blocks of this template, available in Sections. Open any of them to see it on its own page with code.

Section

Toy Hero

Comic-book store hero: burst eyebrow, oversized headline with a highlighted word, CTAs and stats beside a halftone stage with the featured figure, a starburst price sticker and floating sidekick avatars.

Section

Toy Character Rail

Shop-by-character rail of round comic avatars. Links to character pages, or (filter mode) toggles a FilterSidebar character facet so the grid shows only that character's figures — multi-select, URL-synced.

Section

Toy Character Grid

Character roster as trading cards (avatar, alias, universe, hero / villain stamp, power meters, figure count) with instant side and universe filters and a live count.

Section

Toy Character Hero

Character profile header: comic panel with art, hero / villain stamp and speech-bubble quote, plus universe, name, alias, bio, power-level meters, facts and CTAs.

Section

Toy Age Finder

"Who is it for?" gift finder: colourful age-group tiles (range, name, description, toy count) that link to a pre-filtered catalogue, plus optional budget links.

Section

Toy Spec Sheet

"Figure file" for toy product pages: specs (scale, size, age, materials, batteries), articulation badge, "In the box" checklist and a small-parts safety warning.

Section

Toy Collector Club

Loyalty band for toy and collectibles stores: perks, an animated stamp card, membership tiers and a join form with inline validation.

New e-commerce components 2

Built for this template and available on their own in the library.

Component

Toy Figure Card

Trading-card product card for toys and collectibles: universe and scale strip, halftone panel, character, age and articulation chips, pre-order and limited-edition notes.

Component

Toy Figure Grid

Responsive grid of Toy Figure Cards with an empty state; FilterSidebar facets (character, universe, scale, age) and sorting filter it instantly.

Reused library components

Existing components the template is assembled from.