Skip to content
Snippets Groups Projects
Commit ae9853f4 authored by Kasper Seweryn's avatar Kasper Seweryn 🥞
Browse files

Rename input suffix slot to input-right

parent d8d2ddf5
No related branches found
No related tags found
1 merge request!1Implement all components
Pipeline #23735 failed with stages
in 3 minutes and 10 seconds
......@@ -13,16 +13,16 @@ You can use bootstrap icons
<fw-input icon="bi-search" placeholder="Search" />
## Input suffix slot
## Input-right slot
```html
<fw-input v-model="value" placeholder="Search">
<template #suffix>
<template #input-right>
suffix
</template>
</fw-input>
```
<fw-input placeholder="Search">
<template #suffix>
<template #input-right>
suffix
</template>
</fw-input>
......
......@@ -24,8 +24,8 @@ defineProps<Props>()
:placeholder="placeholder"
@click.stop
/>
<div v-if="$slots.suffix" class="suffix">
<slot name="suffix" />
<div v-if="$slots['input-right']" class="input-right">
<slot name="input-right" />
</div>
</div>
</template>
......
......@@ -45,7 +45,7 @@
}
.prefix,
.suffix {
.input-right {
display: flex;
align-items: center;
color: var(--fw-gray-600);
......@@ -62,7 +62,7 @@
justify-content: center;
}
.suffix {
.input-right {
padding-right: 12px;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment