Live code editor for UI docs (#2351)
* Docausaurus code live editor test * Docusaurus sandpack test * Fix setup * Delete files * Fixes * Complete work * Fix config * Fix config --------- Co-authored-by: bosiraphael <raphael.bosi@gmail.com>
This commit is contained in:
16
front/tsup.ui.index.tsx
Normal file
16
front/tsup.ui.index.tsx
Normal file
@ -0,0 +1,16 @@
|
||||
import { ThemeProvider as EmotionThemProvider } from '@emotion/react';
|
||||
|
||||
import { lightTheme, ThemeType } from './src/modules/ui/theme/constants/theme';
|
||||
|
||||
export const ThemeProvider = ({ children }: { children: any }) => {
|
||||
return (
|
||||
<EmotionThemProvider theme={lightTheme}>{children}</EmotionThemProvider>
|
||||
);
|
||||
};
|
||||
|
||||
declare module '@emotion/react' {
|
||||
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
||||
export interface Theme extends ThemeType {}
|
||||
}
|
||||
|
||||
export * from './src/modules/ui/display/checkmark/components/Checkmark';
|
||||
Reference in New Issue
Block a user