Files
healthchat-web/packages/shared-components/src/utils/FormattingUtils.stories.tsx
T
Florian Duros abdb307279 Publish shared components storybook (#31907)
* doc: add typedoc generation for shared component

* ci: add SC doc publish

* ci: push doc on changes on develop

* ci: fix working directory

* doc: add typedoc generation into storybook

* doc: build i18n files for storybook static sites

* ci: change workflow to deploy storybook

* chore: exclude non-ui tests from vitest visual tests

* chore: try to fix error in CI

* doc: fix broken link in README

* doc: add typedoc missing export plugin

Add https://github.com/Gerrit0/typedoc-plugin-missing-exports to avoid
to have to explicit export all the types which are not used outside SC

* doc: add mapping to external docs

* fix: remove shebang
2026-02-06 10:01:42 +00:00

44 lines
1.3 KiB
TypeScript

/*
* Copyright 2026 Element Creations Ltd.
*
* SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial
* Please see LICENSE files in the repository root for full details.
*/
import React from "react";
import { Markdown } from "@storybook/addon-docs/blocks";
import type { Meta } from "@storybook/react-vite";
import formatBytesDoc from "../../typedoc/functions/formatBytes.md?raw";
import formatSecondsDoc from "../../typedoc/functions/formatSeconds.md?raw";
const meta = {
title: "utils/FormattingUtils",
parameters: {
docs: {
page: () => (
<>
<h1>Formatting Utilities</h1>
<p>A collection of utility functions for formatting data into human-readable strings.</p>
<hr />
<h2>formatBytes</h2>
<Markdown>{formatBytesDoc}</Markdown>
<hr />
<h2>formatSeconds</h2>
<Markdown>{formatSecondsDoc}</Markdown>
</>
),
},
},
tags: ["autodocs", "skip-test"],
} satisfies Meta;
export default meta;
// Docs-only story - renders nothing but triggers autodocs
export const Docs = {
render: () => null,
};