introduction #
fuz_ui is a Svelte UI library built on fuz_css. It provides components, helpers, and a documentation system for building zippy websites. It's in early alpha with breaking changes ahead.
Usage #
npm i -D @fuzdev/fuz_ui To import the Svelte components:
<script>
import Alert from '@fuzdev/fuz_ui/Alert.svelte';
import Card from '@fuzdev/fuz_ui/Card.svelte';
import Dialog from '@fuzdev/fuz_ui/Dialog.svelte';
</script> See the nav for the available components and other helpers.
mdz is a markdown dialect enhanced with Svelte components, autolinked identifiers, and other integrations. To compile static content at build time instead of parsing at runtime with slower dynamic rendering, use svelte_preprocess_mdz:
// svelte.config.js
import {svelte_preprocess_mdz} from '@fuzdev/fuz_ui/svelte_preprocess_mdz.js';
export default {
preprocess: [
svelte_preprocess_mdz(),
// ...other preprocessors
],
};