import React from "react"; import { LoremIpsum } from "react-lorem-ipsum"; import { Meta, StoryFn } from "@storybook/react"; import { Markdown } from "../../cmem/markdown/Markdown"; import { HtmlContentBlock } from "../Typography"; import { TextReducer } from "./TextReducer"; export default { title: "Components/TextReducer", component: TextReducer, argTypes: {}, } as Meta; const TemplateFull: StoryFn = (args) => ; export const Default = TemplateFull.bind({}); Default.args = { children: [ , "Simple text with URL http://example.com/ that should not get parsed.", "a < b to test equations in text like b > a.", `Something with a "quote" in it.`, <> {`* This\n* is\n* a\n* list\n\nwritten in Markdown\n* containing a few HTML 'entities' & "quotes".`}

Block with sub elements

, ], }; export const UseMaximumContraints = TemplateFull.bind({}); UseMaximumContraints.args = { ...Default.args, maxNodes: 3, maxLength: 130, }; export const WithOverflowText = TemplateFull.bind({}); WithOverflowText.args = { ...Default.args, useOverflowTextWrapper: true, overflowTextProps: { className: "my-extra-class", "data-test-id": "my-test-id", ellipsis: "reverse", }, };