Skip to content

Commit aeef1e3

Browse files
authored
✨ Merge pull request #188 from it-at-m/183-sparkles-divider-component
✨ added divider #183
2 parents c16840c + e769cdd commit aeef1e3

File tree

4 files changed

+33
-0
lines changed

4 files changed

+33
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import MucDivider from "./MucDivider.vue";
2+
3+
export default {
4+
component: MucDivider,
5+
title: "MucDivider",
6+
tags: ["autodocs"],
7+
parameters: {
8+
docs: {
9+
description: {
10+
component: `The \`muc-divider\` is a trivial divider.
11+
12+
[🔗 Patternlab-Docs](https://patternlab.muenchen.space/?p=viewall-components-all)
13+
`,
14+
},
15+
},
16+
},
17+
};
18+
19+
export const Default = {};
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<template>
2+
<hr class="divider-border" />
3+
</template>
4+
5+
<style scoped>
6+
.divider-border {
7+
border-bottom: 1px solid var(--color-neutrals-blue);
8+
}
9+
</style>

src/components/Divider/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import MucDivider from "./MucDivider.vue";
2+
3+
export { MucDivider };

src/components/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { MucButton } from "./Button";
33
import { MucCallout } from "./Callout";
44
import { MucCard, MucCardContainer } from "./Card";
55
import { MucComment, MucCommentText } from "./Comment/";
6+
import { MucDivider } from "./Divider";
67
import {
78
MucCheckbox,
89
MucCheckboxGroup,
@@ -35,5 +36,6 @@ export {
3536
MucSelect,
3637
MucErrorList,
3738
MucIcon,
39+
MucDivider,
3840
MucLink,
3941
};

0 commit comments

Comments
 (0)