New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@pluginjs/styled

Package Overview
Dependencies
Maintainers
2
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pluginjs/styled

A flexible modern styled js plugin.

  • 0.8.11
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
67
increased by191.3%
Maintainers
2
Weekly downloads
 
Created
Source

Styled

npm package

styled is a utility JavaScript library for control dom inline-style.

Introduction

Installation

Yarn
yarn add @pluginjs/styled
NPM
npm i @pluginjs/styled

Getting Started

CDN:

Development:

<script src="https://unpkg.com/@pluginjs/styled/dist/styled.js"></script>

Production:

<script src="https://unpkg.com/@pluginjs/styled/dist/styled.min.js"></script>

API

setStyle

Parameters

| Name | Type | Description | |||-| | style | StyleSheet | | | element | HTMLElement | |

Returns

| Name | Type | Description | |||-| | element | HTMLElement | |

outerHeight

Parameters

| Name | Type | Description | |||-| | element | HTMLElement | |

Returns

| Name | Type | Description | |||-| | outerHeight | Number | |

outerHeightWithMargin

Parameters

| Name | Type | Description | |||-| | element | HTMLElement | |

Returns

| Name | Type | Description | |||-| | outerHeightWithMargin | Number | |

outerWidth

Parameters

| Name | Type | Description | |||-| | element | HTMLElement | |

Returns

| Name | Type | Description | |||-| | outerWidth | Number | |

outerWidthWithMargin

Parameters

| Name | Type | Description | |||-| | element | HTMLElement | |

Returns

| Name | Type | Description | |||-| | outerWidthWithMargin | Number | |

getStyle

Parameters

| Name | Type | Description | |||-| | attribute | String | | | element | HTMLElement | |

Returns

| Name | Type | Description | |||-| | style | String | |

innerHeight

Parameters

| Name | Type | Description | |||-| | element | HTMLElement | |

Returns

| Name | Type | Description | |||-| | innerHeight | Number | |

innerWidth

Parameters

| Name | Type | Description | |||-| | element | HTMLElement | |

Returns

| Name | Type | Description | |||-| | innerWidth | Number | |

getWidth

Parameters

| Name | Type | Description | |||-| | element | HTMLElement | |

Returns

| Name | Type | Description | |||-| | getWidth | Number | |

getHeight

Parameters

| Name | Type | Description | |||-| | element | HTMLElement | |

Returns

| Name | Type | Description | |||-| | getWidth | Number | |

offset

Parameters

| Name | Type | Description | |||-| | element | HTMLElement | |

Returns

| Name | Type | Description | |||-| | offset | { top: String, left: String } | |

css

Parameters

| Name | Type | Description | |||-| | element | HTMLElement | | | style | StyleSheet | |

Returns

| Name | Type | Description | |||-| | styleValue | String | |

hideElement

Parameters

| Name | Type | Description | |||-| | element | HTMLElement | |

Returns

| Name | Type | Description | |||-| | element | HTMLElement | |

showElement

Parameters

| Name | Type | Description | |||-| | element | HTMLElement | |

Returns

| Name | Type | Description | |||-| | element | HTMLElement | |

Browser support

Tested on all major browsers.

IE / Edge
IE / Edge
Firefox
Firefox
Chrome
Chrome
Safari
Safari
Opera
Opera
IE11, Edgelast 2 versionslast 2 versionslast 2 versionslast 2 versions

License

@pluginjs/styled is Licensed under the GPL-v3 license.

If you want to use @pluginjs/styled project to develop commercial sites, themes, projects, and applications, the Commercial license is the appropriate license. With this option, your source code is kept proprietary.

For purchase an Commercial License, contact us purchase@thecreation.co.

Copyright (C) 2022 Creation Studio Limited.

FAQs

Package last updated on 29 Aug 2022

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc