Skip to content

Commit

Permalink
feat: separator web component
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbert committed Jul 7, 2021
1 parent 34f54bd commit 27ee3d8
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
34 changes: 34 additions & 0 deletions components/separator/stencil.stories.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<!--
@license EUPL-1.2
Copyright (c) 2021 Robbert Broersma
-->

import { Meta, Story, Canvas } from "@storybook/addon-docs";

<!-- Import Docs -->

import README from "./README.md";

export const Template = () => `<utrecht-separator></utrecht-separator>`;

<Meta
title="Web Component/Separator"
argTypes={{}}
parameters={{
docs: {
transformSource: (_src, { args }) => Template(args),
},
status: {
type: "WORK IN PROGRESS",
},
notes: {
UX: README,
},
}}
/>

# Separator

<Canvas>
<Story name="Separator">{Template.bind({})}</Story>
</Canvas>
12 changes: 12 additions & 0 deletions components/separator/stencil.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { Component, h } from "@stencil/core";

@Component({
tag: "utrecht-separator",
styleUrl: "bem.css",
shadow: true,
})
export class Separator {
render() {
return <hr class="utrecht-separator" />;
}
}

0 comments on commit 27ee3d8

Please sign in to comment.