Skip to content

[BUG] - SWITCH Component Width Excessely  #3791

@therealsras

Description

@therealsras

NextUI Version

2.4.8

Describe the bug

image

<Switch onClick={() => theme === "light" ? setTheme("dark") : setTheme("light") } defaultSelected size="lg" color="primary" startContent={<SunIcon />} endContent={<MoonIcon />} className="border-1" ></Switch>

Your Example Website or App

No response

Steps to Reproduce the Bug or Issue

Code above

Expected behavior

Should be no more width

Screenshots or Videos

No response

Operating System Version

macOS, Windows

Browser

Chrome

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions