-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathResults.stories.tsx
More file actions
41 lines (35 loc) · 1009 Bytes
/
Results.stories.tsx
File metadata and controls
41 lines (35 loc) · 1009 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import type { Meta, StoryObj } from '@storybook/react-vite';
import { SearchResults, type SearchResultsProps } from '@nl-design-system-community/theme-wizard-templates/react';
import * as React from 'react';
import '@utrecht/component-library-css';
import documentation from './docs/Results.md?raw';
const CombinedResults = SearchResults as React.ComponentType<SearchResultsProps>;
const meta = {
component: CombinedResults,
parameters: {
docs: {
description: {
component: documentation,
},
},
layout: 'fullscreen',
},
tags: ['autodocs'],
title: 'Templates/Zoeken/Resultaten',
} satisfies Meta<SearchResultsProps>;
export default meta;
type Story = StoryObj<typeof meta>;
export const Default: Story = {
name: 'Zoekresultaten',
args: {
currentPath: '/search-results',
initialQuery: 'afval',
},
};
export const NoResults: Story = {
name: 'Geen resultaten',
args: {
currentPath: '/search-results',
initialQuery: 'onbekendwoord',
},
};