Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
cagataycivici committed Nov 9, 2023
1 parent f02240c commit 650189e
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/inputgroup/BasicDoc.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<DocSectionText v-bind="$attrs">
<p>An InputGroup is created by wrapping the input and add-ons inside an element with a <i>p-inputgroup</i> class where add-ons also should be inside an element with <i>.p-inputgroup-addon</i> class.</p>
<p>A group is created by wrapping the input and add-ons with the <i>InputGroup</i> component. Each add-on element is defined as a child of <i>InputGroupAddon</i> component.</p>
</DocSectionText>
<div class="card flex flex-column md:flex-row gap-3">
<InputGroup>
Expand Down
19 changes: 19 additions & 0 deletions doc/inputgroup/ImportDoc.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<template>
<DocSectionText v-bind="$attrs" />
<DocSectionCode :code="code" hideToggleCode importCode hideCodeSandbox hideStackBlitz />
</template>

<script>
export default {
data() {
return {
code: {
basic: `
import InputGroup from 'primevue/inputgroup';
import InputGroupAddon from 'primevue/inputgroupaddon';
`
}
};
}
};
</script>
8 changes: 7 additions & 1 deletion pages/inputgroup/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,23 @@
</template>

<script>
import AccessibilityDoc from '@/doc/inputgroup/AccessibilityDoc.vue';
import BasicDoc from '@/doc/inputgroup/BasicDoc.vue';
import ButtonDoc from '@/doc/inputgroup/ButtonDoc.vue';
import CheckboxDoc from '@/doc/inputgroup/CheckboxDoc.vue';
import ImportDoc from '@/doc/inputgroup/ImportDoc.vue';
import MultipleDoc from '@/doc/inputgroup/MultipleDoc.vue';
import PTComponent from '@/doc/inputgroup/pt/index.vue';
import AccessibilityDoc from '@/doc/inputgroup/AccessibilityDoc.vue';
export default {
data() {
return {
docs: [
{
id: 'import',
label: 'Import',
component: ImportDoc
},
{
id: 'basic',
label: 'Basic',
Expand Down

0 comments on commit 650189e

Please sign in to comment.