Skip to content

Conversation

@essenmitsosse
Copy link
Contributor

This splits the existing TagClickable into 3 specific components:

  • TagButton
  • TagLink
  • TagRadioButtom
    All have their own implementation and enforce proper usage especially with respect a11y.

The idea is that their implementation should only be touched when updating the design system, needing to extend them or wanting to prevent misusage. Their are explicit strict and not flexible, so they can only be used as intended (no <a href="" type="button">).

The tag component here is an example if this is a pattern we want to continue with. I am leaving the PR as a draft for now, so we can have some discussion about wether or not this is a good direction.

@vercel
Copy link

vercel bot commented Feb 2, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
npmx.dev Ready Ready Preview, Comment Feb 2, 2026 10:14pm
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
docs.npmx.dev Ignored Ignored Preview Feb 2, 2026 10:14pm
npmx-lunaria Ignored Ignored Feb 2, 2026 10:14pm

Request Review

</script>

<template>
<span v-if="disabled" class="opacity-50"><slot /></span>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should probably have a number of the other styles so it looks visually similar or you'd experience layout shift when disabling a button

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this was a quick one, because this isn't used anywhere yet. Just wanted to sketch it out.

@danielroe
Copy link
Member

conceptually this seems good to me 👍

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

Successfully merging this pull request may close these issues.

2 participants