@chromatic-com/tetra 3.3.0 → 3.4.0

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.mts CHANGED
@@ -766,6 +766,7 @@ interface StatProps {
766
766
  }
767
767
  declare const Stat: FC<StatProps>;
768
768
 
769
+ type CollapseBreakpoint = 'sm' | 'md' | 'lg';
769
770
  interface SubNavItem {
770
771
  id: string;
771
772
  label: string;
@@ -778,6 +779,12 @@ interface SubNavProps {
778
779
  theme?: 'light' | 'dark';
779
780
  label: string;
780
781
  items: SubNavItem[];
782
+ /**
783
+ * Below this breakpoint the tabs collapse into a dropdown menu. Use a larger
784
+ * breakpoint when there are too many tabs to fit on one line at `sm`.
785
+ * @default 'sm'
786
+ */
787
+ collapseBelow?: CollapseBreakpoint;
781
788
  }
782
789
  declare const SubNav: FunctionComponent<SubNavProps>;
783
790
 
package/dist/index.d.ts CHANGED
@@ -766,6 +766,7 @@ interface StatProps {
766
766
  }
767
767
  declare const Stat: FC<StatProps>;
768
768
 
769
+ type CollapseBreakpoint = 'sm' | 'md' | 'lg';
769
770
  interface SubNavItem {
770
771
  id: string;
771
772
  label: string;
@@ -778,6 +779,12 @@ interface SubNavProps {
778
779
  theme?: 'light' | 'dark';
779
780
  label: string;
780
781
  items: SubNavItem[];
782
+ /**
783
+ * Below this breakpoint the tabs collapse into a dropdown menu. Use a larger
784
+ * breakpoint when there are too many tabs to fit on one line at `sm`.
785
+ * @default 'sm'
786
+ */
787
+ collapseBelow?: CollapseBreakpoint;
781
788
  }
782
789
  declare const SubNav: FunctionComponent<SubNavProps>;
783
790