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

feat(Link): add as prop #535

Merged
merged 10 commits into from
Sep 16, 2023
Merged

Conversation

Haythamasalama
Copy link
Contributor

Added as prop for customize defaults to rendering when <a> and to not provided.

@stackblitz
Copy link

stackblitz bot commented Aug 14, 2023

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@nuxt-studio
Copy link

nuxt-studio bot commented Aug 14, 2023

Live Preview ready!

Name Edit Preview Latest Commit
ui Edit on Studio ↗︎ View Live Preview 3683de5

@vercel
Copy link

vercel bot commented Aug 14, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
ui ✅ Ready (Inspect) Visit Preview Sep 16, 2023 4:29pm

<component
:is="as"
v-if="!to"
:type="type"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is the type prop here used for specifying the button type? If so, what about v-bind?

@benjamincanac

Copy link
Member

Choose a reason for hiding this comment

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

Do you mean v-bind="$attrs"?

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

Copy link
Member

Choose a reason for hiding this comment

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

Maybe we should remove both type and disabled prop indeed, not sure to remember why I'd put them here in a first place. Will try to experiment!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Maybe we should remove both type and disabled prop indeed, not sure to remember why I'd put them here in a first place. Will try to experiment!

I remove type because it's unneeded; we can use v-bind, but disabled has logic in Link

Haythamasalama and others added 5 commits September 14, 2023 17:20
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
@Haythamasalama
Copy link
Contributor Author

@benjamincanac Can we review this before the big conflicts come crashing in? 😂

@benjamincanac benjamincanac changed the title feat(Link): add as prop feat(Link): add as prop Sep 16, 2023
@benjamincanac benjamincanac merged commit e404912 into nuxt:dev Sep 16, 2023
1 check passed
@Haythamasalama Haythamasalama deleted the feat/link-add-as-prop branch September 16, 2023 19:53
Haythamasalama added a commit to Haythamasalama/ui that referenced this pull request Sep 21, 2023
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
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