Socket
Socket
Sign inDemoInstall

@conectate/ct-button

Package Overview
Dependencies
8
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @conectate/ct-button

HTML Button made with Web Components and Lit


Version published
Weekly downloads
10
increased by100%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

<ct-button>

Published on npm

Installation

npm install @conectate/ct-button
yarn add @conectate/ct-button

NOTE: Conectate Components are distributed as ES2020 JavaScript Modules, and use the Custom Elements API. They are compatible with all modern browsers including Chrome, Firefox, Safari, Edge, and IE11, but an additional tooling step is required to resolve bare module specifiers, as well as transpilation and polyfills for Edge and IE11.

Example usage

Standard

<ct-button value="value1"></ct-button>
<ct-button shadow value="value2"></ct-button>
<ct-button raised value="value3"></ct-button>
<ct-button flat value="value4"></ct-button>
<ct-button light value="value5"></ct-button>
<ct-button disabled value="value5"></ct-button>

<script type="module">
	import '@conectate/ct-button';
</script>

API

Slots

None

Properties/Attributes

NameTypeDefaultDescription
raisedbooleanfalseRaised Style (primary color)
shadowbooleanfalseShown with opaque black background.
flatbooleanfalseShown with a primary color border
lightbooleanfalseShown with a primary color border
disabledbooleanfalseIf true, Disable clicks

Methods

None

Events

NameDetailDescription
value{value : string}Fired when the user modifies the ct-input value state from an input device interaction on this radio.

CSS Custom Properties

Custom propertyDescriptionDefault
--color-primaryPrimary color#00aeff
--dark-primary-colorDark Primary color#00aeff
--ct-button-box-shadowBox-Shadow for hover0 2px 16px 4px rgba(99, 188, 240, 0.45)
--ct-button-shadow-color-rgba(64, 117, 187, 0.1)

Keywords

FAQs

Last updated on 09 Jan 2024

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