/** * External dependencies */ import { Story, Meta } from '@storybook/react'; /** * Internal dependencies */ import ReadMore, { defaultProps, ReadMoreProps } from '..'; export default { title: 'WooCommerce Blocks/@base-components/ReadMore', component: ReadMore, args: defaultProps, argTypes: { children: { control: { disable: true } }, }, } as Meta< ReadMoreProps >; const LongText = ( <>

No! Alderaan is peaceful. We have no weapons. You can't possibly…

As you wish. But with the blast shield down, I can't even see! How am I supposed to fight? Look, I ain't in this for your revolution, and I'm not in it for you, Princess. I expect to be well paid. I'm in it for the money.

You mean it controls your actions? { ' ' } She must have hidden the plans in the escape pod. { ' ' } Send a detachment down to retrieve them, and see to it personally, Commander. There'll be no one to stop us this time!

Escape is not his plan. I must face him, alone.

  1. Partially, but it also obeys your commands.
  2. Leave that to me. Send a distress signal, and inform the Senate that all on board were killed.
  3. A tremor in the Force. The last time I felt it was in the presence of my old master.
); const Template: Story< ReadMoreProps > = ( args ) => ; export const Default = Template.bind( {} ); Default.args = { children: LongText, maxLines: 6, };