Socket
Socket
Sign inDemoInstall

@svelteuidev/composables

Package Overview
Dependencies
0
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @svelteuidev/composables

Svelte actions and utilities library


Version published
Weekly downloads
1.3K
decreased by-9.08%
Maintainers
1
Install size
65.1 kB
Created
Weekly downloads
 

Readme

Source

SvelteUI Composables

Composables with useful actions and utility functions.

  • Package includes functions that are used to build components in @svelteuidev/ scoped packages.
  • You can use these functions in your applications with or without other @svelteuidev/ packages.

Documentation

See full documentation on the SvelteUI website

Installation

# With yarn
yarn add @svelteuidev/composables

# With npm
npm i @svelteuidev/composables

Included Composables

Actions:

  • use-click-outside – Triggers a callback when a user clicks outside of a given element
  • use-clipboard - Copies text to the clipboard when DOM element is clicked
  • use-css-variable - Update css properties on the fly whenever some of their values change
  • use-download - Causes a download to occur with a given Blob object
  • use-focus - Calls focus on a node once mounted into the DOM
  • use-hot-key - Calls focus on a node once mounted into the DOM
  • use-lazy - Lazily attach properties to any DOM element when it is in the window
  • use-long-press - Creates a longpress event when mousedown is above a duration in milliseconds
  • use-page-leave - Prevent current tab from being closed by user
  • use-persistent-tab - Render an element or component anywhere in the DOM
  • use-portal - Call function when mouse leaves the page
  • use-tab-leave - Call a function when the current tab is switched

Utils:

License

All svelteui packages have MIT license. All svelteui dependencies also have MIT license.

Keywords

FAQs

Last updated on 03 Jun 2022

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc