8000 BUG: Primitive.a component has ts error with href passed · Issue #1051 · rad-ui/ui · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

BUG: Primitive.a component has ts error with href passed #1051

New issue

8000 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

Open
GoldGroove06 opened this issue Apr 28, 2025 · 0 comments
Open

BUG: Primitive.a component has ts error with href passed #1051

GoldGroove06 opened this issue Apr 28, 2025 · 0 comments

Comments

@GoldGroove06
Copy link
Collaborator

Description

Primitive.a component has ts error with href passed due to the types not being passed to the creation of the components by primitive

`
interface ElementToHTMLMap {
div: HTMLDivElement;
span: HTMLSpanElement;
button: HTMLButtonElement;
input: HTMLInputElement;
a: HTMLAnchorElement;
}

// Map element types to their prop types
interface ElementToPropMap {
div: React.HTMLAttributes;
span: React.HTMLAttributes;
button: React.ButtonHTMLAttributes;
input: React.InputHTMLAttributes;
a: React.AnchorHTMLAttributes;
}
`

something like this can be used to fix the issue

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

No branches or pull requests

1 participant
0