V-calendar: How to change border color

Created on 6 May 2019  路  2Comments  路  Source: nathanreyes/v-calendar

Is there a way to change vc-border-gray-400 without css, perhaps using props or theme?

Most helpful comment

Yes, there is a theme prop that you can use to override the default theme keys. Still working on the documentation for this but you can reference the structure to get an idea of the sections you can configure.

The setting you want is container.

<v-calendar :theme="theme" />
export default {
  data() {
    return {
      theme: {
        container: {
          light: 'light-container-class',  // Classes to apply for light mode
          dark: 'dark-container-class',  // Classes to apply for dark mode
        }
      }
    };
  }
}

All 2 comments

Yes, there is a theme prop that you can use to override the default theme keys. Still working on the documentation for this but you can reference the structure to get an idea of the sections you can configure.

The setting you want is container.

<v-calendar :theme="theme" />
export default {
  data() {
    return {
      theme: {
        container: {
          light: 'light-container-class',  // Classes to apply for light mode
          dark: 'dark-container-class',  // Classes to apply for dark mode
        }
      }
    };
  }
}

the theme props doesn't seem to work in @next version

Was this page helpful?
0 / 5 - 0 ratings

Related issues

redraw picture redraw  路  3Comments

Maadtin picture Maadtin  路  3Comments

hanhtv204 picture hanhtv204  路  4Comments

garygreen picture garygreen  路  3Comments

sokolovdm picture sokolovdm  路  3Comments