Coder Social home page Coder Social logo

Comments (6)

JaleelB avatar JaleelB commented on August 28, 2024 1

Ah, I see. You didn't make that clear in your initial comment. This isn't exactly a default behavior for tag inputs so I'll have to test this out to see if it's a good fit.

from shadcn-tag-input.

JaleelB avatar JaleelB commented on August 28, 2024

@Codemaine Let me know if I am missing something, but it works like this now.

Screenshot 2024-05-30 at 2 25 29 PM

from shadcn-tag-input.

Codemaine avatar Codemaine commented on August 28, 2024

This is how it shows on my implementation

image

from shadcn-tag-input.

Codemaine avatar Codemaine commented on August 28, 2024

Shows the same on the documentation

image

from shadcn-tag-input.

JaleelB avatar JaleelB commented on August 28, 2024

This is how it shows on my implementation

image

@Codemaine That is how it should be. You've set a width some where on the input (maybe on the parent container). If the space left in the container is less than the width of the input, the input wraps to a new line. The same logic applies to the tags as well. They wrap inside the tag list.

Other implementations of tag inputs with inline tags work the same way. Here is an example: https://mantine.dev/core/tags-input/

from shadcn-tag-input.

Codemaine avatar Codemaine commented on August 28, 2024

Yea, I'm aware that it's supposed to wrap when there's no available horizontal space, that's why I'm requesting for this. You should allow the user to scroll horizontally to view the tags, to keep the input's height constant.

from shadcn-tag-input.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.