Skip to content

Commit

Permalink
feat(Experimental/Select): add new prop: wrapperClass
Browse files Browse the repository at this point in the history
  • Loading branch information
gravitano committed Sep 4, 2023
1 parent 58c3a36 commit ea551d3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/select/src/Select.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,11 @@ Clearable.args = {
clearable: true,
};

export const WrapperClass = Template.bind({});
WrapperClass.args = {
wrapperClass: 'border-b-2 border-error-500 rounded-b-lg',
};

export const Searchable = Template.bind({});
Searchable.args = {
searchable: true,
Expand Down
2 changes: 2 additions & 0 deletions packages/select/src/Select.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ const props = withDefaults(
searchSuffixIcon?: string;
searchSuffixIconSize?: string;
searchSuffixIconClass?: string;
wrapperClass?: string;
}>(),
{
itemText: 'text',
Expand Down Expand Up @@ -235,6 +236,7 @@ defineSlots<{
shadowClass,
`v-select--${placement}`,
`v-select--${searchPlacement}`,
wrapperClass,
]"
>
<component
Expand Down

0 comments on commit ea551d3

Please sign in to comment.