@pyrami/coreframe
v1.0.3
Published
Reusable Svelte component library published as an npm package.
Readme
Coreframe
Reusable Svelte component library published as an npm package.
What this package exports
Coreframe exports layout and UI primitives from src/lib/index.ts, including:
Grid,GridItemFlex,FlexItemStack,StackItemAbsolute,AbsoluteChildSticky,Fixed,ScrollVirtualListText,Image,ContentEditor,Entry,Button
Install
Install from npm using your published package name:
npm install <your-package-name>Example:
npm install pyrami-coreframeUsage
<script lang="ts">
import { Button, Flex, Text } from 'pyrami-coreframe';
</script>
<Flex direction="row" gap={12}>
<Text>Reusable UI</Text>
<Button>Click</Button>
</Flex>Local development
npm install
npm run devBuild and publish
This project is intended to be published as a library. Before publishing, ensure your package.json has:
- a publishable
name - a
versionhigher than the previously published one "private": false(or removeprivate)- proper
exportsandfilesfields
Then publish:
npm run package
npm publishIf using a scoped public package, publish with:
npm publish --access public