Skip to content
Snippets Groups Projects
Commit d0f376a3 authored by Ekaterina Kondareva's avatar Ekaterina Kondareva
Browse files

hy-main component

parent 5bbf8f22
No related branches found
No related tags found
No related merge requests found
:host {
display: block;
}
.hy-main {
}
import {Component, Prop, h} from '@stencil/core';
@Component({
tag: 'hy-main',
styleUrl: 'hy-main.scss',
shadow: true
})
export class HyMain {
@Prop() hasSidebar: boolean = false;
render() {
return (
<div
class={{
'hy-main': true,
'has-sidebar': this.hasSidebar
}}
>
<slot />
</div>
);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment