diff --git a/front/src/components/ui/Pills.vue b/front/src/components/ui/Pills.vue
new file mode 100644
index 000000000..87160f797
--- /dev/null
+++ b/front/src/components/ui/Pills.vue
@@ -0,0 +1,123 @@
+
+
+
+
+
+
+
+
+
+
+ {{ props.label }}
+
+
+
+
+
+
+ {{ value }}
+
+
+ {{ value }} ×
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/front/src/components/ui/pill.scss b/front/src/components/ui/pill.scss
index e44258017..9224ceb6d 100644
--- a/front/src/components/ui/pill.scss
+++ b/front/src/components/ui/pill.scss
@@ -16,7 +16,6 @@
font-size: small;
border-radius: 100vh;
- margin: 0 0.5ch;
> .pill-content {
padding: 0.5em 0.75em;
@@ -45,7 +44,7 @@
}
}
- &:hover {
+ &:hover:not(.no-underline) {
text-decoration: underline;
}
diff --git a/front/ui-docs/.vitepress/config.ts b/front/ui-docs/.vitepress/config.ts
index 86a9ce12c..be91d209a 100644
--- a/front/ui-docs/.vitepress/config.ts
+++ b/front/ui-docs/.vitepress/config.ts
@@ -60,6 +60,7 @@ export default defineConfig({
{ text: 'Loader', link: '/components/ui/loader' },
{ text: 'Modal', link: '/components/ui/modal' },
{ text: 'Pill', link: '/components/ui/pill' },
+ { text: 'List of pills', link: '/components/ui/pills' },
],
},
],
diff --git a/front/ui-docs/components/ui/pill.md b/front/ui-docs/components/ui/pill.md
index 56a1aab38..af66a69b4 100644
--- a/front/ui-docs/components/ui/pill.md
+++ b/front/ui-docs/components/ui/pill.md
@@ -12,6 +12,8 @@ You can add text to pills by adding it between the `
` tags.
| ------- | ----------------------------------------------------------------------------------------------- | --------- | ----------- | ---------------------- |
| `color` | `primary` \| `secondary` \| `destructive` \| `blue` \| `red` \| `purple` \| `green` \| `yellow` | No | `secondary` | Renders a colored pill |
+-> [Let the user create lists of pills](./pills)
+
### Primary
Primary pills convey **positive** information.
diff --git a/front/ui-docs/components/ui/pills.md b/front/ui-docs/components/ui/pills.md
new file mode 100644
index 000000000..96d18d57b
--- /dev/null
+++ b/front/ui-docs/components/ui/pills.md
@@ -0,0 +1,27 @@
+
+
+# Pills
+
+
+
+
+
+Select a set of pills from presets, and add and remove custom ones
+
+
+
+