@nzz/et-components-highlighted-text
v0.0.3
Published
Text with highlighted parts
Readme
@nzz/et-components-highlighted-text
Features
Render a text with some highlighted parts. The highlights can be background, underline or textcolor.
Usage
- Add Dependency
npm install @nzz/et-components-highlighted-text - Use the interfaces for your model: interfaces.ts
- Render text with hightlights: TextWithHighlights.svelte
- Copy custom schema parts from customSchema.ts
- list of available highlightColors
- highlights in a textblock
Develop
Run example
pnpm installpnpm run dev:svelteShowcase and test in Storybook
pnpm --filter @repo/storybook exec -- pnpm run storybookPublish:
- update version number in package.json
npm publish 