Skip to content

Commit

Permalink
feat: match autocomplete component to related plugin (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
bpsmartdesign committed Aug 7, 2023
1 parent 9514e39 commit f665f46
Show file tree
Hide file tree
Showing 2 changed files with 197 additions and 116 deletions.
93 changes: 92 additions & 1 deletion .playground/pages/tests/form/autocomplete.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ definePageMeta({
description: 'SVG icons',
section: 'form',
})
const items = ref<any[]>(['Javascript', 'Vue.js', 'React.js', 'Angular'])
</script>

<template>
Expand All @@ -13,8 +15,97 @@ definePageMeta({
>
<div>
<BaseHeading size="xl" weight="medium" class="mb-10">
Autocomplete
Autocomplete shape
</BaseHeading>
<div class="grid grid-cols-5 gap-4">
<BaseAutocomplete
:items="items"
label="Test"
placeholder="Let's test autocomplete"
error="This is an error message"
shape="straight"
label-float
clearable
multiple
/>
<BaseAutocomplete
:items="items"
label="Test"
placeholder="Let's test autocomplete"
error="This is an error message"
shape="rounded"
label-float
clearable
multiple
/>
<BaseAutocomplete
:items="items"
label="Test"
placeholder="Let's test autocomplete"
error="This is an error message"
shape="smooth"
label-float
clearable
multiple
/>
<BaseAutocomplete
:items="items"
label="Test"
placeholder="Let's test autocomplete"
error="This is an error message"
shape="curved"
label-float
clearable
multiple
/>
<BaseAutocomplete
:items="items"
label="Test"
placeholder="Let's test autocomplete"
error="This is an error message"
shape="full"
label-float
clearable
multiple
/>
</div>
</div>
<div>
<BaseHeading size="xl" weight="medium" class="mb-10">
Autocomplete Size
</BaseHeading>
<div class="grid grid-cols-3 gap-4">
<BaseAutocomplete
:items="items"
label="Test"
placeholder="Let's test autocomplete"
error="This is an error message"
size="sm"
label-float
clearable
multiple
/>
<BaseAutocomplete
:items="items"
label="Test"
placeholder="Let's test autocomplete"
error="This is an error message"
size="md"
label-float
clearable
multiple
/>
<BaseAutocomplete
:items="items"
label="Test"
placeholder="Let's test autocomplete"
error="This is an error message"
size="lg"
label-float
clearable
multiple
/>
</div>
</div>
</div>
</template>
Loading

0 comments on commit f665f46

Please sign in to comment.