Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
chamilo-lms/assets/vue/components/basecomponents/BaseInputGroup.vue

43 lines
722 B

<template>
<div class="p-inputgroup">
<InputText
:name="inputName"
:placeholder="inputPlaceholder"
type="text"
/>
<BaseButton
:icon="buttonIcon"
:label="buttonLabel"
is-submit
type="primary"
@click="$emit('button-click', $event)"
/>
</div>
</template>
<script setup>
import InputText from "primevue/inputtext"
import BaseButton from "./BaseButton.vue"
defineProps({
inputName: {
type: String,
required: true,
},
inputPlaceholder: {
type: String,
required: true,
},
buttonLabel: {
type: String,
required: true,
},
buttonIcon: {
type: String,
required: true,
},
})
defineEmits(["button-click"])
</script>