New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

spare-bones

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spare-bones

Additional Svelte components to use with [Skeleton](https://skeleton.dev), powered by [Zag](https://zagjs.com).

latest
npmnpm
Version
0.2.0
Version published
Maintainers
1
Created
Source

Spare Bones

Additional Svelte components to use with Skeleton, powered by Zag.

Set Up

Install with npm install spare-bones, then add package's dist folder as a Tailwind source:

@source @source '../node_modules/spare-bones/dist';

Adjust the path as needed for your project structure. See the Tailwind documentation for more info.

Components

Menu

Basic usage:

<script>
	import { Menu } from 'spare-bones';
</script>

<Menu
	onSelect={(details) => alert(details.value)}
	aria-label="Menu"
	contentWidth="w-32"
	triggerBackground="preset-filled-primary-500"
>
	{#snippet trigger()}Menu{/snippet}
	<Menu.Item value="1">Item 1</Menu.Item>
	<Menu.Item value="2">Item 2</Menu.Item>
	<Menu.Item value="3">Item 3</Menu.Item>
	<Menu.Item value="4">Item 4</Menu.Item>
</Menu>

See the types and Zag documentation for more information.

Developing

Once you've created a project and installed dependencies with pnpm install, start a development server:

pnpm run dev

# or start the server and open the app in a new browser tab
pnpm run dev -- --open

Everything inside src/lib is part of your library, everything inside src/routes can be used as a showcase or preview app.

Building

To build the library:

pnpm run package

To create a production version of the showcase app:

pnpm run build

You can preview the production build with pnpm run preview.

Keywords

svelte

FAQs

Package last updated on 03 Apr 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts