@codesign-eu/ui-library
v2.0.17
Published
MUI component library for Codesign applications.
Readme
@codesign-eu/ui-library
MUI component library for Codesign applications.
Usage
import { Button, Dropdown, MenuItem, Textbox, CodesignThemeProvider } from '@codesign-eu/ui-library'
export function Example() {
return (
<CodesignThemeProvider theme="primary">
<Textbox label="Project name" />
<Dropdown label="Status" value="draft">
<MenuItem value="draft">Draft</MenuItem>
<MenuItem value="published">Published</MenuItem>
</Dropdown>
<Button color="fusion">Save</Button>
</CodesignThemeProvider>
)
}Available theme presets:
primarysecondarysuccessinfowarningdangerfusion
Published Types
This package publishes its public TypeScript surface through dist/index.d.ts.
- Consumer applications should import from
@codesign-eu/ui-library, not fromindex.d.ts. - Keep
package.jsontypespointing at./dist/index.d.ts. - Keep
package.jsonexports["."].typespointing at./dist/index.d.ts. - Treat
src/index.tsas the public API barrel that drives the generated root type declarations. - If we add public subpath exports in the future, each subpath should also define its own
typesentry.
Development
npm install
npm run storybookRelease helpers
npm run version:patch
npm run version:minor
npm run version:major