Skip to content

Commit

Permalink
feat: initialize css and tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinLaubenstein authored and nowseemee committed Jul 27, 2021
1 parent 0073e69 commit 4161e8b
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
.radio-button-group {
display: inline-flex;
flex-direction: column;
}

.radio-button-group__container {
display: flex;
flex-direction: column;
margin-left: 1.5rem;
}

.radio-button-group__checkbox {
margin-top: 0.5rem;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { Component, h, Host } from '@stencil/core';

@Component({
tag: 'scale-radio-button-group',
styleUrl: './radio-button-group.css',
shadow: true,
})
export class CheckboxGroup {
render() {
return (
<Host>
<div class="radio-button-group">
<div class="radio-button-group__label">
<slot name="radio-button-label" />
</div>
<div class="radio-button-group__container">
<slot name="radio-button-list" />
</div>
</div>
</Host>
);
}
}

0 comments on commit 4161e8b

Please sign in to comment.