diff --git a/src/constants.js b/src/constants.js index 31612cc..d33d830 100644 --- a/src/constants.js +++ b/src/constants.js @@ -136,7 +136,9 @@ export function parsePropsDeclaration(options) { options.default = options.hasOwnProperty('default') ? options.default : getDefaultValue(options.type) - options.attribute = true + options.attribute = options.hasOwnProperty('attribute') + ? options.attribute + : true return options }