File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -23,10 +23,29 @@ import { MucIcon } from "../Icon";
2323
2424const props = withDefaults (
2525 defineProps <{
26+ /**
27+ * Text shown as the link
28+ */
2629 label: string ;
30+
31+ /**
32+ * href to link to
33+ */
2734 href? : string ;
35+
36+ /**
37+ * Optional icon displayed behind the text
38+ */
2839 icon? : string ;
40+
41+ /**
42+ * Target on the link
43+ */
2944 target? : string ;
45+
46+ /**
47+ * Removes the underline from the label text
48+ */
3049 noUnderline? : boolean ;
3150 }>(),
3251 {
@@ -36,6 +55,17 @@ const props = withDefaults(
3655 }
3756);
3857
58+ defineSlots <{
59+ /**
60+ * Icon slots overrides chosen prop icon.
61+ * The icon can be displayed infront or behind the label with these classes: icon--after | icon--before
62+ */
63+ icon(): void ;
64+ }>();
65+
66+ /**
67+ * Computed class to remove the underline if chosen.
68+ */
3969const reversedUnderlineClass = computed (() =>
4070 props .noUnderline ? " m-link--reversed-underline" : " "
4171);
You can’t perform that action at this time.
0 commit comments