Skip to content

Commit a473f5c

Browse files
author
Корпусов Максим
committed
feat: divider component
1 parent b6e35d8 commit a473f5c

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy