Composable stats typography style selector
Creates stats typography styles with configurable size and theme options.
Typography size variant
Optional
Configuration for theme
JSS object with composed styles and appropriate className
// Basic usageconst stat = stats.compose('large');// With dark themeconst darkStat = stats.compose('large', { theme: 'dark' });// In element builder with themeconst styleElements = { ...typography.stats.compose('medium', { theme: isThemeDark ? 'dark' : 'light' }),}; Copy
// Basic usageconst stat = stats.compose('large');// With dark themeconst darkStat = stats.compose('large', { theme: 'dark' });// In element builder with themeconst styleElements = { ...typography.stats.compose('medium', { theme: isThemeDark ? 'dark' : 'light' }),};
1.7.0
Composable stats typography style selector
Creates stats typography styles with configurable size and theme options.