label-studio icon indicating copy to clipboard operation
label-studio copied to clipboard

How to create a custom component and scripts

Open reveur-code opened this issue 1 year ago • 4 comments

How to create a custom tag ? I need to create a multi Select Component in label studio. How to do ?

reveur-code avatar Sep 03 '24 18:09 reveur-code

Hi @reveur-code , could you provide some more details on your usecase? I'm wondering if https://labelstud.io/tags/choices with choice=multiple might suit your needs.

jombooth avatar Sep 04 '24 19:09 jombooth

Hi @reveur-code , could you provide some more details on your usecase? I'm wondering if https://labelstud.io/tags/choices with choice=multiple might suit your needs.

Actually my question is can I add a new tag by editing the code base? Like adding a new multiselect drop-down and I should nsne it as <MultiSelect />. So I could import this tag in xml

reveur-code avatar Sep 04 '24 20:09 reveur-code

It's possible, but not at all trivial. I'm just wondering if something else we offer could work for your usecase, eg Taxonomy (https://labelstud.io/tags/taxonomy) with maxUsages > 1 ?

jombooth avatar Sep 04 '24 20:09 jombooth

This is not for a single use case. I have given a example. Just if any one want to create new rags, what would be the steps?

reveur-code avatar Sep 04 '24 20:09 reveur-code