You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As of #6995, the EuiProvider component now supports a componentDefaults prop that allows consumers to configure specific components' default props, overriding EUI's own defaults.
For example: EuiFocusTrap defaults to crossFrame={false} - i.e., it does not trap focus between iframes. If you wanted to change that behavior in your app across all instances of EuiFocusTrap, you would previously be stuck manually passing that prop over and over again, including in higher-level components (like modals, popovers, and flyouts) that utilize focus traps. You can now instead do this:
This new API is in beta, and is initially only releasing with a limited number of supported components to test out usage and developer experience. While we're eventually hoping to adopt an architecture that would potentially allow all props across all EUI components to be customizable, for right now, please use this thread to request specific combinations of component/prop defaults.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
As of #6995, the EuiProvider component now supports a
componentDefaults
prop that allows consumers to configure specific components' default props, overriding EUI's own defaults.For example: EuiFocusTrap defaults to
crossFrame={false}
- i.e., it does not trap focus between iframes. If you wanted to change that behavior in your app across all instances of EuiFocusTrap, you would previously be stuck manually passing that prop over and over again, including in higher-level components (like modals, popovers, and flyouts) that utilize focus traps. You can now instead do this:This new API is in beta, and is initially only releasing with a limited number of supported components to test out usage and developer experience. While we're eventually hoping to adopt an architecture that would potentially allow all props across all EUI components to be customizable, for right now, please use this thread to request specific combinations of component/prop defaults.
Beta Was this translation helpful? Give feedback.
All reactions