Composable primary action button style selector
Creates primary button styles with configurable size and color options. Primary buttons are used for the main call-to-action on a page.
Optional
Configuration object for style variants
JSS object with composed styles and appropriate className
// Normal size, default red colorconst styles = composePrimary();// Large sizeconst styles = composePrimary({ size: 'large' });// White color variantconst styles = composePrimary({ color: 'white' });// Large with white colorconst styles = composePrimary({ size: 'large', color: 'white' }); Copy
// Normal size, default red colorconst styles = composePrimary();// Large sizeconst styles = composePrimary({ size: 'large' });// White color variantconst styles = composePrimary({ color: 'white' });// Large with white colorconst styles = composePrimary({ size: 'large', color: 'white' });
1.7.0
Composable primary action button style selector
Creates primary button styles with configurable size and color options. Primary buttons are used for the main call-to-action on a page.