We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40926e2 commit c95a181Copy full SHA for c95a181
packages/design-system/docs/components/OcButton/OcButton.md
@@ -88,4 +88,20 @@ A click handler can be registered via the `@click` property.
88
<<< @/components/OcButton/handler.vue
89
:::
90
91
+### Links
92
+
93
+Use `type="a"` for external links, `type="router-link"` for internal navigation.
94
95
+::: livecode
96
97
+```html
98
+<!-- External link -->
99
+<oc-button type="a" href="https://docs.opencloud.eu" target="_blank">Documentation</oc-button>
100
101
+<!-- Internal navigation -->
102
+<oc-button type="router-link" :to="{ name: 'files-spaces-projects' }">Projects</oc-button>
103
+```
104
105
+:::
106
107
::: component-api
0 commit comments