File tree 1 file changed +43
-0
lines changed
lib/src/components/MDivider
1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change
1
+ <template >
2
+ <hr
3
+ role =" separator"
4
+ :aria-orientation =" vertical ? 'vertical' : 'horizontal'"
5
+ class =" mv-border-[0.5px] mv-border-[--md-sys-color-outline-variant]"
6
+ :class =" {
7
+ 'mv-max-w-full mv-block mv-max-h-px': !vertical,
8
+ 'mv-max-w-px mv-max-h-full mv-self-stretch mv-inline-flex': vertical,
9
+ 'mv-mx-4': middle && !vertical,
10
+ 'mv-ml-4': inset && !vertical,
11
+ 'mv-mt-4': inset && vertical,
12
+ 'mv-my-4': middle && vertical,
13
+ }"
14
+ :style =" { height: vertical ? 'inherit' : '' }"
15
+ />
16
+ </template >
17
+
18
+ <script setup>
19
+ defineProps ({
20
+ inset: {
21
+ type: Boolean ,
22
+ default: false ,
23
+ },
24
+ middle: {
25
+ type: Boolean ,
26
+ default: false ,
27
+ },
28
+ vertical: {
29
+ type: Boolean ,
30
+ default: false ,
31
+ },
32
+ subheader: {
33
+ type: String ,
34
+ default: null ,
35
+ },
36
+ })
37
+ </script >
38
+
39
+ <script >
40
+ export default {
41
+ name: ' MDivider' ,
42
+ }
43
+ </script >
You can’t perform that action at this time.
0 commit comments