konstaui / konsta

Mobile UI components made with Tailwind CSS
https://konstaui.com
MIT License
3.55k stars 131 forks source link

Navbar generate bad HTML's #96

Closed erangac closed 2 years ago

erangac commented 2 years ago

Check that this is really a bug

Reproduction link

.

Bug description

The following code snippet from the given examples.

<Navbar
        title="Navbar"
        subtitle="Subtitle"
        className="top-0 sticky"
        medium={size === 'Medium'}
        large={size === 'Large'}
        transparent={isTransparent}
        right={<Link navbar>Right</Link>}
      />

This will generate the following warning when use with ReactJS.

Warning: validateDOMNesting(...): <a> cannot appear as a descendant of <a>.

Expected Behavior

No response

Actual Behavior

No response

Konsta UI version

0.11.1

Platform/Target and Browser Versions

macOs / Chrome Version 107.0.5304.110 (Official Build) (arm64)

Validations

Would you like to open a PR for this bug?

github-actions[bot] commented 2 years ago

Hello @erangac. Please provide a online reproduction by Stack Blitz or a minimal GitHub repository. You can fork this Stack Blitz to get start. Issues labeled by missing demo will be closed if no activities in 3 days.