diff --git a/common/index.js b/common/index.js index dbb312f7e..d43fcf4cf 100644 --- a/common/index.js +++ b/common/index.js @@ -19,5 +19,6 @@ module.exports = { mixin: require('./mixin'), display: require('./display'), detail: require('./detail'), - progressBar: require('./progress-bar') + progressBar: require('./progress-bar'), + role: require('./role') }; diff --git a/common/role/README.md b/common/role/README.md new file mode 100644 index 000000000..ceec19ede --- /dev/null +++ b/common/role/README.md @@ -0,0 +1,37 @@ +# roles +It is a wrapper tag, its only use is to protect its content. +Warning: the content sould not be two dom element. +The role tag is super easy to use, there are two concepts: + +- a user has at least one Role + +In a render function + +```javascript +//SomeWhere else +let Role = FocusComponents.common.role.component; + +render(){ + return ( + +