Skip to content

Export Cloudscape themed components in another component library #2456

Answered by connorlanigan
GomezIvann asked this question in Q&A
Discussion options

You must be logged in to vote

Hello Iván, thank you for reaching out to us! Happy to hear you're using our components.

If I understand correctly, the core of the issue lies in treating the themed components as if they're the @cloudscape-design/components package. I would recommend to follow a slightly different approach:

  1. Generate a themed version of the Cloudscape components
  2. Make these themed components available as their own package (e.g. in NPM or a GitHub Packages registry or a local workspace), for example something like @dxc-technology/halstack-react-themed-cloudscape-components
  3. In your component library, depend on (and import from) @dxc-technology/halstack-react-themed-cloudscape-components instead of @cloudsca…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@connorlanigan
Comment options

Answer selected by connorlanigan
@GomezIvann
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants