@neo4j-ndl/react
Version:
React implementation of Neo4j Design System
130 lines (129 loc) • 3.56 kB
JavaScript
/**
*
* Copyright (c) "Neo4j"
* Neo4j Sweden AB [http://neo4j.com]
*
* This file is part of Neo4j.
*
* Neo4j is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import { jsx as _jsx } from "react/jsx-runtime";
import { Response } from '../Response';
import { ResponseAllComponents, ResponseAllComponentsSource, ResponseCodeExamples, ResponseCodeExamplesSource, ResponseDefault, ResponseDefaultSource, ResponseFullExample, ResponseFullExampleSource, ResponseHeadings, ResponseHeadingsSource, ResponseLists, ResponseListsSource, ResponseStreaming, ResponseStreamingSource, } from './index';
const meta = {
component: Response,
id: 'components-ai-response',
parameters: {
controls: { disable: true },
},
tags: ['docsPage'],
title: 'Components/AI/Response',
};
export default meta;
export const Default = {
args: {},
parameters: {
docs: {
source: {
code: ResponseDefaultSource,
language: 'tsx',
type: 'code',
},
},
},
render: ResponseDefault,
};
export const Streaming = {
args: {},
parameters: {
chromatic: { disableSnapshot: true },
docs: {
source: {
code: ResponseStreamingSource,
language: 'tsx',
type: 'code',
},
},
},
render: ResponseStreaming,
};
export const AllComponents = {
args: {},
parameters: {
docs: {
source: {
code: ResponseAllComponentsSource,
language: 'tsx',
type: 'code',
},
},
},
render: ResponseAllComponents,
};
export const CodeExamples = {
args: {},
parameters: {
docs: {
source: {
code: ResponseCodeExamplesSource,
language: 'tsx',
type: 'code',
},
},
},
render: ResponseCodeExamples,
};
export const Headings = {
args: {},
parameters: {
docs: {
source: {
code: ResponseHeadingsSource,
language: 'tsx',
type: 'code',
},
},
},
render: ResponseHeadings,
};
export const Lists = {
args: {},
parameters: {
docs: {
source: {
code: ResponseListsSource,
language: 'tsx',
type: 'code',
},
},
},
render: ResponseLists,
};
export const FullExample = {
args: {},
decorators: [
(Story) => (_jsx("div", { className: "n-bg-neutral-bg-default n-p-4", children: _jsx(Story, {}) })),
],
parameters: {
docs: {
source: {
code: ResponseFullExampleSource,
language: 'tsx',
type: 'code',
},
},
},
render: ResponseFullExample,
};
//# sourceMappingURL=response.stories.js.map