umd-styles-library
    Preparing search index...

    Function compose

    • Composable stats typography style selector

      Creates stats typography styles with configurable size and theme options.

      Parameters

      Returns JssObject

      JSS object with composed styles and appropriate className

      // Basic usage
      const stat = stats.compose('large');

      // With dark theme
      const darkStat = stats.compose('large', { theme: 'dark' });

      // In element builder with theme
      const styleElements = {
      ...typography.stats.compose('medium', {
      theme: isThemeDark ? 'dark' : 'light'
      }),
      };

      1.7.0