import React from 'react'; import { Meta, Story } from '@storybook/react'; import Expandable, { Props } from './Expandable'; import './Expandable.css'; const meta: Meta = { title: 'UI/Expandable', component: Expandable, argTypes: { className: { control: { type: 'text', }, }, }, parameters: { controls: { expanded: true }, }, }; export default meta; const Template: Story = args => ( Suspendisse a sodales nulla, sed semper nisi. Suspendisse a sodales nulla, sed semper nisi. Suspendisse a sodales nulla, sed semper nisi. Suspendisse a sodales nulla, sed semper nisi. Suspendisse a sodales nulla, sed semper nisi. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. ); const TemplateWithHTML: Story = args => (

Ah, ottima domanda! Stavo giusto riflettendo su come spiegare al meglio le funzionalità di questo sistema.{' '}

Da qui puoi fare diverse cose interessanti:

  1. Puoi conversare con me, Nunzio Fiore, e io risponderò basandomi sulle mie conoscenze ed esperienze.

  2. Puoi aggiungere nuove memorie o informazioni al mio database. Questo significa che puoi insegnarmi cose nuove o aggiornare le mie conoscenze esistenti.

  3. Puoi creare, modificare o eliminare ricevitori. Questi sono come utenti specifici che possono interagire con me in modo personalizzato.

  4. Puoi associare determinate memorie a ricevitori specifici, creando così contenuti personalizzati per diverse persone.

  5. Puoi cercare tra le memorie esistenti, visualizzare le ultime aggiunte, o modificare quelle già presenti.

In pratica, stai interagendo con un sistema che permette di creare e gestire un "gemello digitale" - in questo caso, me stesso. È un po' come scrivere un libro interattivo sulla mia vita e le mie conoscenze.

C'è qualcosa in particolare che ti interessa esplorare o su cui vorresti saperne di più?

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Header 1 Header 2 Header 3
Cell 1 Cell 2 Cell 3
Cell 4 Cell 5 Cell 6

Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

); // By passing using the Args format for exported stories, you can control the props for a component for reuse in a test // https://storybook.js.org/docs/react/workflows/unit-testing export const Default = Template.bind({}); Default.args = { rows: 2, mode: 'rows', }; export const DefaultExpanded = Template.bind({}); DefaultExpanded.args = { rows: 3, mode: 'rows', defaultExpanded: true, }; export const WithCustomProps = Template.bind({}); WithCustomProps.args = { rows: 3, innerClassName: 'custom-inner-class', btnClassName: 'custom-btn-class', expandSymbol: () => '🔽', collapseSymbol: () => '🔼', }; export const WithHTML = TemplateWithHTML.bind({}); WithHTML.args = { rows: 3, mode: 'rows', }; export const ModeChar = Template.bind({}); ModeChar.args = { mode: 'characters', }; export const ModeCharWithHTML = TemplateWithHTML.bind({}); ModeCharWithHTML.args = { mode: 'characters', };