Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Position of suffix in Fwb-Input #300

Open
TissyashriS opened this issue Jul 9, 2024 · 1 comment
Open

Position of suffix in Fwb-Input #300

TissyashriS opened this issue Jul 9, 2024 · 1 comment

Comments

@TissyashriS
Copy link

position of the suffix is incorrect while its changed manually its working but by default it isn't working

<template>
    <div class="w-[500px] h-[40px] m-10 flex justify-center items-center">
        <FwbInput
            v-model="query"
            label="Search"
            placeholder="enter your search query"
            size="lg"
        >
      <template #prefix>
        <svg aria-hidden="true" class="w-5 h-5 text-gray-500 dark:text-gray-400" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
          <path d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" />
        </svg>
      </template>
      <template #suffix>
        <FwbButton>Search</FwbButton>
      </template>
    </FwbInput>
    </div>
</template>
  
<script lang="ts" setup>
  import { ref } from 'vue'
  import { FwbButton, FwbInput } from 'flowbite-vue'
  
  const query = ref('')
</script>

image

@ogzcode
Copy link
Contributor

ogzcode commented Jul 24, 2024

The code you gave in the stackblitz link below works fine. I think the problem is caused by something else. Could you please post the entire code.Make sure you don't change the style elsewhere

Stackblitz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants