Closed vladmoroz closed 1 month ago
Based on our discussions, we agreed to drop the import * as Foo
pattern and replace it with import { Foo }
, so it's easier to type and VSCode suggestions include it.
import { Dialog } from '@base_ui/react';
import { Dialog } from '@base_ui/react/Dialog';
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. Now, if you have additional information related to this issue or things that could help future readers, feel free to leave a comment.
The DX of importing Base UI components should be cleaned up to avoid unnecessary noise:
For example, typing
Dialog
in VSC should not suggest anything but theDialog
component.Expected import styles:
Shouldn't be a thing: