PHPackages                             sy/webcomponent - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. sy/webcomponent

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

sy/webcomponent
===============

Component with css, js and translation properties

2.2.1(2y ago)01.6k5MITPHPPHP &gt;=5.6.0

Since Sep 29Pushed 2y ago1 watchersCompare

[ Source](https://github.com/syframework/webcomponent)[ Packagist](https://packagist.org/packages/sy/webcomponent)[ RSS](/packages/sy-webcomponent/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (2)Versions (16)Used By (5)

sy/webcomponent
===============

[](#sywebcomponent)

A web component is a component with CSS and JS properties.

**Sy\\Component\\WebComponent** class derives from [Sy\\Component](https://github.com/syframework/component)

Installation
------------

[](#installation)

Install the latest version with

```
$ composer require sy/webcomponent
```

CSS/JS management
-----------------

[](#cssjs-management)

### CSS/JS link

[](#cssjs-link)

Use **addCssLink** and **addJsLink** to specify stylesheet and javascript source path.

Example:

```
