decorationprop that is rendered after the component children. The ThemeProvider can be used to include a decoration in all instances of any trigger component by default.
Closeprop of type component that will be passed an
onClickthat will call the modal instance's
deactivateprop. The ThemeProvider can be used to set the Close component for all modal headers by default.
Componentry v2 is the first stable release of the library (lesson learned: be cautious initializing packages at 1.0.0). Going forward any change to component APIs or classes or any change to the Bootstrap styles will follow semver and be considered breaking changes.
<Close />component 🎉
<Icon />component 🎉
no-scrollclass added to replace
no-scrollclass can be used by any component that needs to freeze scroll (eg freeze scroll on mouseenter for scrollable dropdowns)
ariaTitleis removed, the
Modal.Titlecomponent should be used with class
sr-onlyfor modals without visual titles.
<Fragment />component with the modal and modal-backdrop as siblings with no root. React with Fragments (^16.2) required
<Alert/>components now render visible by default. The
withActiveHOC has been updated to accept a
defaultActiveconfiguration to enable this.
<State/>component has been renamed to
<Active/>for better semantics.
withStateHOC is removed. The
<State>component supports yielding active state and handlers through function as a child.