diff --git a/code/core/assets/server/base-preview-head.html b/code/core/assets/server/base-preview-head.html index 17aa180bcdaa..d2f46487ec7e 100644 --- a/code/core/assets/server/base-preview-head.html +++ b/code/core/assets/server/base-preview-head.html @@ -2,19 +2,19 @@ + + +); + const Component = ({ id, header, detail }: any) => { const element = document.querySelector('.' + id); if (!element) { @@ -68,8 +82,18 @@ export const MyError = { }, }; +export const MyErrorWithCustomCSS = { + ...MyError, + decorators: [StyleDecorator], +}; + export const Missing = { args: { id: 'sb-nopreview', }, }; + +export const MissingWithCustomCSS = { + ...Missing, + decorators: [StyleDecorator], +};