Type Extending

Top level objects are available in the exports object under their ids.

Item {
    id: button
}

exports.button {
    width: 100
}

This also works across files.

// styles/button.js
Item {
    id: sampleButton
}

// styles/complexButton.js
``
var button = require('./button.js');
``
button.sampleButton {
}