3.12.9 • Published 4 months ago

@conectate/ct-button v3.12.9

Weekly downloads
11
License
BSD-3-Clause
Repository
github
Last release
4 months ago

<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)
3.12.9

4 months ago

3.12.4

7 months ago

3.9.0

9 months ago

3.11.0

8 months ago

3.8.0

10 months ago

3.10.0

8 months ago

3.12.1

8 months ago

3.12.0

8 months ago

3.11.1

8 months ago

3.7.6

11 months ago

3.7.5

1 year ago

3.7.3

2 years ago

3.7.2

2 years ago

3.7.0

2 years ago

3.6.4

2 years ago

3.6.3

2 years ago

3.6.0

2 years ago

3.5.12

2 years ago

3.5.11

2 years ago

3.5.7

3 years ago

3.5.5

3 years ago

3.5.8

3 years ago

3.5.3

3 years ago

3.5.2

3 years ago

3.5.1

3 years ago

3.5.0

3 years ago

3.5.4

3 years ago

3.4.0

3 years ago

3.3.0

3 years ago

3.2.1

3 years ago

3.2.0

3 years ago

3.0.0

3 years ago

1.4.0

3 years ago

1.3.0

3 years ago

1.2.1

3 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago