@euk-labs/componentz
v0.5.17
Published
    {
return (
<Provider container={globalContainer}>
<ThemeProvider theme={theme}>
<CssBaseline />
<Component {...pageProps} />
</ThemeProvider>
</Provider>
);
}
export default MyApp;A simple example of what a component's usage pattern looks like:
import { useUIStore, Breadcrumb } from '@euk-labs/componentz';
import { Box } from '@mui/material';
import { useEffect } from 'react';
function About() {
// A hook that delivers all the control of a part of the application, in this case the UI
const uiStore = useUIStore();
useEffect(() => {
// Controlling the state
uiStore.breadcrumb.setPaths([
{
label: 'Home',
link: '/',
},
{
label: 'About',
link: '/about',
},
]);
}, []);
return (
<Box>
// Rendering the Breadcrumb component on any DOM level
<Breadcrumb />
// You can add your JSX code here
<Box>...</Box>
</Box>
);
}
export default Home;Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
