Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lightningjs/ui

Package Overview
Dependencies
Maintainers
5
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lightningjs/ui - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

24

docs/Keyboard/Key.md

@@ -48,3 +48,3 @@ # Key

If you want to change anything related to the label of the Key you can use the `labelText` setter:
If you want to change anything related to the label of the Key you can use the `label` setter to adjust the label tag:

@@ -55,6 +55,8 @@ ```js

type: Key,
labelText: {
fontSize: 44,
fontFamily: 'MyFont-Regular',
//basically any setter you can use when using a text texture
label: {
text: {
fontSize: 44,
fontFamily: 'MyFont-Regular',
//basically any setter you can use when using a text texture
}
}

@@ -117,4 +119,4 @@ }

# labelText
Sets the labelText `object` the Key component uses to alter how the label is presented.
# label
Patches an object to the label `tag`, this allows you to customize the label tag.

@@ -125,3 +127,3 @@ # labelColors

# background
Patches an object to the background tag, this allows you to customize the background tag.
Patches an object to the background `tag`, this allows you to customize the background tag.

@@ -136,4 +138,4 @@ # backgroundColors

# labelText
Returns the labelText `object` the Key component uses to alter how the label is presented.
# label
Returns the label `tag`, this allows you to customize the label `tag`.

@@ -144,5 +146,5 @@ # labelColors

# background
Returns the background tag, this allows you to customize the background tag.
Returns the background `tag`, this allows you to customize the background `tag`.
# backgroundColors
Returns the backgroundColors `object` the Key component uses to switch the color when it is focused.
{
"name": "@lightningjs/ui",
"version": "1.1.1",
"version": "1.1.2",
"description": "Standard UI components for Lightning",

@@ -5,0 +5,0 @@ "scripts": {

@@ -57,2 +57,10 @@ /*

set label(obj) {
this.tag('Label').patch(obj);
}
get label() {
return this.tag('Label');
}
set labelColors(obj) {

@@ -59,0 +67,0 @@ this._labelColors = obj;

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