Add Storybook stories for the new brewery detail page components

This commit is contained in:
Aaron Po
2026-08-28 15:06:27 -04:00
parent 83863b0bd8
commit 7cc14630a9
13 changed files with 591 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
import type { Meta, StoryObj } from '@storybook/react-vite';
import BreweryLocationMap from '../app/features/breweries/components/BreweryLocationMap';
const breweryLocationMapDescription = `Small fixed single-pin Leaflet map used by the brewery detail page's Location sidebar card. Smoke-render only - this hits the real OpenStreetMap tile server in the browser test run.`;
const meta = {
title: 'Breweries/BreweryLocationMap',
component: BreweryLocationMap,
parameters: {
layout: 'padded',
docs: {
description: {
component: breweryLocationMapDescription,
},
},
},
} satisfies Meta<typeof BreweryLocationMap>;
export default meta;
type Story = StoryObj<typeof meta>;
export const Default: Story = {
args: {
latitude: 45.5152,
longitude: -122.6784,
label: 'Cascade Hollow Brewing — 123 Hop Street',
},
};