Coffeekraken.io 0.0.1

s-component

Return the name of the top level component setted with the [../mixins/_s-component.scss] mixin

Name Type Description Status Default
$default { String } The name to return if no top component name exist optional null

Return { String } The component name

Example

    s-component('hello') // => 'hello'
@include s-component('my-component') {
        s-component('hello') // => 'my-component'
        @include s-component('another-component') {
            s-component('hello') // => 'my-component'
        }
}

Author : Olivier Bossel olivier.bossel@gmail.com;