8000
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 2572bea commit 0bc9c7fCopy full SHA for 0bc9c7f
src/components/form/CInputGroupText.ts
@@ -2,8 +2,20 @@ import { defineComponent, h } from 'vue'
2
3
const CInputGroupText = defineComponent({
4
name: 'CInputGroupText',
5
- setup(_, { slots }) {
6
- return () => h('span', { class: 'input-group-text' }, slots.default && slots.default())
+ props: {
+ /**
7
+ * Component used for the root node. Either a string to use a HTML element or a component.
8
+ *
9
+ * @default 'span'
10
+ */
11
+ component: {
12
+ type: String,
13
+ required: false,
14
+ default: 'span',
15
+ },
16
17
+ setup(props, { slots }) {
18
+ return () => h(props.component, { class: 'input-group-text' }, slots.default && slots.default())
19
},
20
})
21
0 commit comments