{"id":20796609,"url":"https://github.com/lidorsystems/integralui-web-label","last_synced_at":"2026-04-11T17:46:31.413Z","repository":{"id":57701406,"uuid":"505985984","full_name":"lidorsystems/integralui-web-label","owner":"lidorsystems","description":"IntegralUI Web - Label is a native Web Component that is fully customizable label with different alignments relative to attached element.","archived":false,"fork":false,"pushed_at":"2022-06-21T21:38:23.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-04T07:40:20.615Z","etag":null,"topics":["angular","component","integralui","javascript","js","label","react","reactjs","ui","vue","vuejs","web","web-component"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lidorsystems.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-06-21T19:57:21.000Z","updated_at":"2022-06-21T21:38:06.000Z","dependencies_parsed_at":"2022-08-29T04:31:42.125Z","dependency_job_id":null,"html_url":"https://github.com/lidorsystems/integralui-web-label","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lidorsystems%2Fintegralui-web-label","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lidorsystems%2Fintegralui-web-label/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lidorsystems%2Fintegralui-web-label/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lidorsystems%2Fintegralui-web-label/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lidorsystems","download_url":"https://codeload.github.com/lidorsystems/integralui-web-label/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243141256,"owners_count":20242817,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angular","component","integralui","javascript","js","label","react","reactjs","ui","vue","vuejs","web","web-component"],"created_at":"2024-11-17T16:28:20.401Z","updated_at":"2026-04-11T17:46:31.357Z","avatar_url":"https://github.com/lidorsystems.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IntegralUI Web - Label, v22.2\n\nIntegralUI Web - Label is a native Web Component that is fully customizable label with different alignments relative to attached element. \n\n![IntegralUI Web - Label, 22.2 - a native Web Component for JavaScript, Angular, React and Vue. A fully customizable label with different alignments relative to attached element.](https://www.lidorsystems.com/products/web/studio/images/integralui-web-label.png)\n\n\u003cb\u003eNote\u003c/b\u003e This component is part of [IntegralUI Web](https://github.com/lidorsystems/integralui-web.git) library.\n\nHere is a brief overview of what is included:\n\n\n## Components\n\n[Label](https://www.lidorsystems.com/products/web/studio/samples/#/label) - A fully customizable label with different alignments relative to attached element\u003c/li\u003e\n\n\n## Services\n\n\u003cb\u003eCommon\u003c/b\u003e - Includes a set of common functions usable in most applications\n\n\n## Dependencies\n\nIntegralUI Web is built on top of [LitElement](https://github.com/Polymer/lit-element). All necessary files from that library are already included in the /external subfolder of this repository.\n\n\n## DEMO\n\n[Online QuickStart App](https://www.lidorsystems.com/products/web/studio/samples/) - An online demo of Label component is included\n\n\n## Installation\n\nInstall the repository by running\n\n```bash\nnpm install https://github.com/lidorsystems/integralui-web-label.git\n```\n\nor directly from NPM\n\n```bash\nnpm i integralui-web-label\n```\n\n\n## How to Use\n\n\u003cb\u003eNote\u003c/b\u003e A detailed information is available here: [How to Use IntegralUI Web Components](https://www.lidorsystems.com/help/integralui/web-components/introduction/installation/). Explains how to setup and use components for each framework: Angular, React or Vanilla JavaScript.\n\nIn general, you need to open your application and add a reference to a component you want to use. For example, if you are using the IntegralUI Label component:\u003c/p\u003e\n\n### Angular\n\n```bash\nimport 'integralui-web-label/components/integralui.label.js';\nimport { IntegralUILabelAlignment, IntegralUITheme } from 'integralui-web-label/components/integralui.enums.js';\n\n@Component({\n    selector: '',\n    templateUrl: './label-overview.html',\n    styleUrls: ['./label-overview.css']\n})\nexport class LabelOverviewSample {\n    public labelAlignment: IntegralUILabelAlignment = IntegralUILabelAlignment.Left;\n    public labelContentSize: any = { width: 200 }\n    public labelSize: any = { width: 350 }\n    public currentTheme: IntegralUITheme = IntegralUITheme.Office;\n}\n```\n\nThen, place the component in HTML using its tag. Here is an example:\n\n\n```bash\n\u003cdiv class=\"alignment-block\"\u003e\n    \u003ciui-label [alignment]=\"labelAlignment\" [contentSize]=\"labelContentSize\" [size]=\"labelSize\" [value]=\"'Label 1'\" [theme]=\"currentTheme\"\u003e\n        \u003cinput value=\"Sample text\" /\u003e\n    \u003c/iui-label\u003e\n\u003c/div\u003e\n```\n\nDepending on current version of TypeScript, you may need to add some settings in tsconfig.json, under \"angularCompilerOptions\":\n\n```bash\n\"angularCompilerOptions\": {\n\n    . . .\n\n    \"suppressImplicitAnyIndexErrors\": true,     // solves implicit any values\n    \"noImplicitAny\": false,             // solves angular could not find a declaration file for module implicitly has an 'any' type\n    \"strictNullChecks\": false           // solves type null is not assignable to type\n\n}\n```\n\n\n### React\n\nCurrently [ReactJS doesn't have full support for Web Components](https://custom-elements-everywhere.com/#react). Mainly because of the way data is passed to the component via attributes and their own synthetic event system. For this reason, you can use available wrappers located under /wrappers directory, which are ReactJS components that provide all public API from an IntegralUI component.\u003c/p\u003e\n\n```bash\nimport IntegralUILabelComponent from 'integralui-web-label/wrappers/react.integralui.label.js';\nimport { IntegralUILabelAlignment, IntegralUITheme } from 'integralui-web-label/components/integralui.enums.js';\n\nclass LabelOverview extends Component {\n\n    constructor(props){\n        super(props);\n\n        this.state = {\n            isAnimationAllowed: true,\n            labelAlignment: IntegralUILabelAlignment.Left,\n            labelContentSize: { width: 200 },\n            labelSize: { width: 350 },\n            currentTheme: IntegralUITheme.Office\n        }\n    }\n}\n```\n\nThen, place the component in HTML using its tag. Here is an example:\n\n```bash\n    render() {\n        return (\n            \u003cdiv className=\"alignment-block\"\u003e\n                \u003cIntegralUILabelComponent alignment={this.state.labelAlignment} contentSize={this.state.labelContentSize} size={this.state.labelSize} value={'Label 1'}  theme={this.state.currentTheme}\u003e\n                    \u003cinput defaultValue=\"Sample text\" /\u003e\n                \u003c/IntegralUILabelComponent\u003e\n            \u003c/div\u003e\n        );\n    }\n```\n\n\n### Vanilla JavaScript\n\n```bash\n\u003cscript type=\"module\" src=\"integralui-web-label/components/integralui.label.js\"\u003e\u003c/script\u003e\n```\n\nThen, place the component in HTML using its tag. Here is an example:\n\n```bash\n\u003cdiv class=\"alignment-block\"\u003e\n    \u003ciui-label value=\"Label 1\" alignment=\"Left\" theme=\"Office\"\u003e\u003cinput value=\"Sample text\" /\u003e\u003c/iui-label\u003e\n\u003c/div\u003e\n```\n\n## How to Change Appearance\n\nTo modify the Label appearance, you can use CSS custom properties:\n\n```bash\n.alignment-block iui-label {\n    --label-background: #cecece;\n    --label-display: block;\n    --label-focused-background: #6ea9db;\n    --label-focused-color: white;\n    --label-margin: 10px 0;\n\n    --label-value-padding: 5px;\n}\n```\n\n## QuickStart App\n\nThere is a demo application with source code that contains samples for each component included in the IntegralUI Web library. It can help you to get started quickly with learning about the components and write tests immediatelly. \n\nFrom [IntegralUI Web - QuickStart](https://github.com/lidorsystems/integralui-web-quickstart) you can download a demo app for Angular, AngularJS, React and Vanilla JavaScript. A detailed information about each of these quick-start demos is available in ReadMe file, located in the root folder of the demo app.\n\n\n## License Information\n\nYou are FREE to use this product to develop Internet and Intranet web sites, web applications and other products, with no-charge.\n\nThis project has been released under the IntegralUI Web Lite License, and may not be used except in compliance with the License.\nA copy of the License should have been installed in the product's root installation directory or it can be found here: [License Agreement](https://www.lidorsystems.com/products/web/lite/integralui-web-lite-license-agreement.pdf).\n\nThis SOFTWARE is provided \"AS IS\", WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flidorsystems%2Fintegralui-web-label","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flidorsystems%2Fintegralui-web-label","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flidorsystems%2Fintegralui-web-label/lists"}