# Configuration

Chūshō options can be set by passing an object as the second argument of app.use when installing it:






 
 
 
 
 
 
 
 
 

import { createApp } from 'vue';
import Chusho from 'chusho';

const app = createApp(App);

app.use(Chusho, {
    components: {
        alert: {
            // Alert component options
        },
        // Other components options…
    },
    // Other options…
});

# Available options

# components

Configure components globally, see each component page for available options.

  • type: object
  • default: null

This object accept the following properties, one for each component:

{
    alert: {},
    btn: {},
    dialog: {},
    icon: {},
    tabs: {},
    tabList: {},
    tab: {},
    tabPanels: {},
    tabPanel: {},
    collapse: {},
    collapseBtn: {},
    collapseContent: {},
}

# rtl

Define if the current document direction is Right-to-left. This is used internally to adapt some behaviors.

  • type: function
  • default:
    function () {
      return document && document.dir === 'rtl';
    }
    
Last updated: 12/2/2020, 12:50:55 PM