2023-02-28 08:29:30 +00:00
|
|
|
<template>
|
|
|
|
<DocSectionText v-bind="$attrs">
|
|
|
|
<p>Buttons can be placed at either side of an input element.</p>
|
|
|
|
</DocSectionText>
|
|
|
|
<div class="card flex flex-column md:flex-row gap-3">
|
|
|
|
<div class="p-inputgroup flex-1">
|
|
|
|
<Button label="Search" />
|
|
|
|
<InputText placeholder="Keyword" />
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="p-inputgroup flex-1">
|
|
|
|
<InputText placeholder="Keyword" />
|
2023-03-03 12:15:20 +00:00
|
|
|
<Button icon="pi pi-search" severity="warning" />
|
2023-02-28 08:29:30 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="p-inputgroup flex-1">
|
2023-03-03 12:15:20 +00:00
|
|
|
<Button icon="pi pi-check" severity="success" />
|
2023-02-28 08:29:30 +00:00
|
|
|
<InputText placeholder="Vote" />
|
2023-03-03 12:15:20 +00:00
|
|
|
<Button icon="pi pi-times" severity="danger" />
|
2023-02-28 08:29:30 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<DocSectionCode :code="code" />
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
code: {
|
2023-08-16 13:58:31 +00:00
|
|
|
basic: `<div class="p-inputgroup flex-1">
|
2023-02-28 08:29:30 +00:00
|
|
|
<Button label="Search" />
|
|
|
|
<InputText placeholder="Keyword" />
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="p-inputgroup flex-1">
|
|
|
|
<InputText placeholder="Keyword" />
|
2023-03-03 12:15:20 +00:00
|
|
|
<Button icon="pi pi-search" severity="warning" />
|
2023-02-28 08:29:30 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="p-inputgroup flex-1">
|
2023-03-03 12:15:20 +00:00
|
|
|
<Button icon="pi pi-check" severity="success" />
|
2023-02-28 08:29:30 +00:00
|
|
|
<InputText placeholder="Vote" />
|
2023-03-03 12:15:20 +00:00
|
|
|
<Button icon="pi pi-times" severity="danger" />
|
2023-02-28 08:29:30 +00:00
|
|
|
</div>`,
|
2023-08-16 13:58:31 +00:00
|
|
|
options: `<template>
|
2023-02-28 08:29:30 +00:00
|
|
|
<div class="card flex flex-column md:flex-row gap-3">
|
|
|
|
<div class="p-inputgroup flex-1">
|
|
|
|
<Button label="Search" />
|
|
|
|
<InputText placeholder="Keyword" />
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="p-inputgroup flex-1">
|
|
|
|
<InputText placeholder="Keyword" />
|
2023-03-03 12:15:20 +00:00
|
|
|
<Button icon="pi pi-search" severity="warning" />
|
2023-02-28 08:29:30 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="p-inputgroup flex-1">
|
2023-03-03 12:15:20 +00:00
|
|
|
<Button icon="pi pi-check" severity="success" />
|
2023-02-28 08:29:30 +00:00
|
|
|
<InputText placeholder="Vote" />
|
2023-03-03 12:15:20 +00:00
|
|
|
<Button icon="pi pi-times" severity="danger" />
|
2023-02-28 08:29:30 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>`,
|
2023-08-16 13:58:31 +00:00
|
|
|
composition: `<template>
|
2023-02-28 08:29:30 +00:00
|
|
|
<div class="card flex flex-column md:flex-row gap-3">
|
|
|
|
<div class="p-inputgroup flex-1">
|
|
|
|
<Button label="Search" />
|
|
|
|
<InputText placeholder="Keyword" />
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="p-inputgroup flex-1">
|
|
|
|
<InputText placeholder="Keyword" />
|
2023-03-03 12:15:20 +00:00
|
|
|
<Button icon="pi pi-search" severity="warning" />
|
2023-02-28 08:29:30 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="p-inputgroup flex-1">
|
2023-03-03 12:15:20 +00:00
|
|
|
<Button icon="pi pi-check" severity="success" />
|
2023-02-28 08:29:30 +00:00
|
|
|
<InputText placeholder="Vote" />
|
2023-03-03 12:15:20 +00:00
|
|
|
<Button icon="pi pi-times" severity="danger" />
|
2023-02-28 08:29:30 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>`
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|