Skip to content

Commit

Permalink
✨ Merge pull request #188 from it-at-m/183-sparkles-divider-component
Browse files Browse the repository at this point in the history
✨ added divider #183
  • Loading branch information
langehm authored Aug 14, 2024
2 parents c16840c + e769cdd commit aeef1e3
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/components/Divider/MucDivider.stories.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import MucDivider from "./MucDivider.vue";

export default {
component: MucDivider,
title: "MucDivider",
tags: ["autodocs"],
parameters: {
docs: {
description: {
component: `The \`muc-divider\` is a trivial divider.
[🔗 Patternlab-Docs](https://patternlab.muenchen.space/?p=viewall-components-all)
`,
},
},
},
};

export const Default = {};
9 changes: 9 additions & 0 deletions src/components/Divider/MucDivider.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<template>
<hr class="divider-border" />
</template>

<style scoped>
.divider-border {
border-bottom: 1px solid var(--color-neutrals-blue);
}
</style>
3 changes: 3 additions & 0 deletions src/components/Divider/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import MucDivider from "./MucDivider.vue";

export { MucDivider };
2 changes: 2 additions & 0 deletions src/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { MucButton } from "./Button";
import { MucCallout } from "./Callout";
import { MucCard, MucCardContainer } from "./Card";
import { MucComment, MucCommentText } from "./Comment/";
import { MucDivider } from "./Divider";
import {
MucCheckbox,
MucCheckboxGroup,
Expand Down Expand Up @@ -35,5 +36,6 @@ export {
MucSelect,
MucErrorList,
MucIcon,
MucDivider,
MucLink,
};

0 comments on commit aeef1e3

Please sign in to comment.