@storybook/blocks 8.1.0-alpha.7 → 8.1.0-alpha.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -64,11 +64,11 @@ interface ArgType {
64
64
  disable?: boolean;
65
65
  subcategory?: string;
66
66
  defaultValue?: {
67
- summary: string;
67
+ summary?: string;
68
68
  detail?: string;
69
69
  };
70
70
  type?: {
71
- summary: string;
71
+ summary?: string;
72
72
  detail?: string;
73
73
  };
74
74
  readonly?: boolean;
@@ -479,10 +479,23 @@ declare const Subheading: FC<PropsWithChildren<HeadingProps>>;
479
479
 
480
480
  interface SubtitleProps {
481
481
  children?: ReactNode;
482
+ /**
483
+ * Specify where to get the subtitle from.
484
+ * If not specified, the subtitle will be extracted from the meta of the attached CSF file.
485
+ */
486
+ of?: Of;
482
487
  }
483
488
  declare const Subtitle: FunctionComponent<SubtitleProps>;
484
489
 
485
490
  interface TitleProps {
491
+ /**
492
+ * Specify where to get the title from. Must be a CSF file's default export.
493
+ * If not specified, the title will be read from children, or extracted from the meta of the attached CSF file.
494
+ */
495
+ of?: Of;
496
+ /**
497
+ * Specify content to display as the title.
498
+ */
486
499
  children?: ReactNode;
487
500
  }
488
501
  declare const extractTitle: (title: ComponentTitle) => string;