Skip to content

What can I do when types are missing for a component? (using Toast component) #1270

Answered by endigo9740
planetaska asked this question in Q&A
Discussion options

You must be logged in to vote

Can you share the specific error?

When customizing a component via style props you don't provide types, you just provide a key and value (attribute and value) such as:

<Toast buttonAction="btn variant-filled-primary" />

edit

Reading your message again, I see what you mean - you're trying to customize it via the ToastSettings data.

Essentially you have two ways to customize toast specifically:

  1. Using the prop method as demoed above - this will change the global defaults for all toast instances
  2. Using the ToastSettings for one-off changes per toast instance (per message if you will)

We don't support you passing component props values within ToastSettings, however you can use classes to targ…

Replies: 2 comments 2 replies

Comment options

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

@endigo9740
Comment options

Answer selected by planetaska
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
3 participants