MvuiCSSRuleset

@mvuijs/core / style / MvuiCSSRuleset

MvuiCSSRuleset #

object

{
    declarations: MvuiCSSDeclarations;
    selector: string;
}

A CSS ruleset. (You will likely never want to create this manually and use the sheet helper to create these instead.)

Example #

{ selector: 'button', { 'background': 'black', 'color': 'white' }}
// equivalent to
style.sheet({
  'button': {
    'background': 'black',
    'color': 'white',
  }
})[0]

Type declaration #

Member Type
declarations MvuiCSSDeclarations
selector string

Defined in: packages/core/src/style/sheet.ts:37