-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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: export props for accordion #16284
feat: export props for accordion #16284
Conversation
✅ Deploy Preview for v11-carbon-react ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We probably should be as explicit as possible with both the imports and exports.
Do you think we could batch all the other ones into one PR or would you prefer to do separate ones for each listed in #16154
Also see my note over there: #16154 (comment) - I think the expectation here for now is that we'll only be able to make these available through fully qualified import paths, e.g.
import { type AccordionProps } from "@carbon/react/es/components/Accordion";
Does that match what you've understood so far here working on this? Maybe I'm incorrect.
@@ -5,9 +5,10 @@ | |||
* LICENSE file in the root directory of this source tree. | |||
*/ | |||
|
|||
import Accordion from './Accordion'; | |||
import Accordion, { AccordionProps } from './Accordion'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import Accordion, { AccordionProps } from './Accordion'; | |
import Accordion, { type AccordionProps } from './Accordion'; |
export { Accordion }; | ||
export type { AccordionProps }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
export { Accordion }; | |
export type { AccordionProps }; | |
export { Accordion, type AccordionProps }; |
Closes #16154
Created a Draft PR to get the export reviewed
Changelog
Changed