Interface ConditionalStyles<Props, RuleNameSubsetReferencableInNestedSelectors, RuleName>
Type parameters
Props: Record<string, unknown>
RuleNameSubsetReferencableInNestedSelectors: string
RuleName: string
Properties
styles
styles
: Styles<Props, RuleNameSubsetReferencableInNestedSelectors, RuleName>Methods
condition
- condition(props: Props): boolean
Parameters
Returns boolean
Optional mediaQueryGenerator
- mediaQueryGenerator(theme: Theme, props: Props): null | string
Parameters
Returns null | string
Object with styles and condition, mediaQuery on which these styles should be used