ct-components

Use Conectate Components (ct-*) when building UIs with Lit, Vue, or React. Covers @conectate/components web components (ct-button, ct-input, ct-dialog, ct-select, etc.), CtLit base class, imports, slots, CSS variables, and events. Use when the user mentions ct-components, Conectate Components, or building interfaces with this library.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "ct-components" with this command: npx skills add conectate/ct-elements/conectate-ct-elements-ct-components

Conectate Components (ct-components)

Conectate Components is a library of web components published as @conectate/components. Use this skill when building UIs with Lit, Vue, or React and the project uses or should use these components.

Installation

pnpm i @conectate/components
# or
npm i @conectate/components

Base class CtLit

For Lit-based components, extend CtLit instead of LitElement to get utilities:

import { CtLit, customElement, html } from "@conectate/components/ct-lit.js";

@customElement("my-component")
class MyComponent extends CtLit {
  render() {
    return html`<div>My component</div>`;
  }
}
  • $$(selector) — first match in shadow root. $$$(selector) — all matches.
  • fire(name, detail) — dispatch custom event with detail.
  • scrollToY(scrollTargetY, time?, easing?, target?) — animated scroll.
  • deepClone(object) — deep clone (structuredClone or JSON fallback).

Full API: examples/ct-lit.md.

Imports

Always import the component script before use. One import per component:

import "@conectate/components/ct-button";
import "@conectate/components/ct-input";
import "@conectate/components/ct-dialog";

Path pattern: @conectate/components/<component-name>.

Components (overview)

Use each tag only after importing its script. For full props, slots, and CSS variables, see the linked docs.

CategoryComponentDocTypical use
BaseCtLitct-lit.mdBase class for Lit components
Buttonsct-buttonct-button.mdraised, flat, shadow, light; slots prefix/suffix
ct-button-helpersct-button-helpers.mdButton helpers
ct-button-menuct-button-menu.mdButton with dropdown menu
ct-button-splitct-button-split.mdSplit button + menu
ct-icon-buttonct-icon-button.mdIcon-only button
Inputsct-inputct-input.mdText input with label, errorMessage, charCounter
ct-input-container, ct-input-wrapperct-input-container.md, ct-input-wrapper.mdInput layout / wrapper
ct-textareact-textarea.mdMultiline input
ct-textarea-autogrowct-textarea-autogrow.mdAuto-growing textarea
ct-input-autocomplete, ct-autocomplete-suggestionsct-input-autocomplete.md, ct-autocomplete-suggestions.mdInput with suggestions
ct-input-phone, ct-phone-inputct-input-phone.md, ct-phone-input.mdPhone number input
ct-datect-date.mdDate picker
ct-checkboxct-checkbox.mdCheckbox
ct-radioct-radio.mdRadio group
Dialogs & overlayct-dialogct-dialog.mdModal via showCtDialog(content); animations alert, slide-right, bottom-sheet
ct-dialog-builderct-dialog-builder.mdDialog builder
ct-card-dialogct-card-dialog.mdCard-style dialog
ct-bottom-sheetct-bottom-sheet.mdBottom sheet
ct-confirmct-confirm.mdConfirmation dialog
Selectionct-selectct-select.mdSingle/multi select; items, value, searchable; event value with e.detail.value
ct-select-dialog, ct-select-itemct-select-dialog.md, ct-select-item.mdBuilding blocks for select UIs
Feedbackct-loading, ct-loading-bar, ct-loading-placeholderct-loading.md, ct-loading-bar.md, ct-loading-placeholder.mdLoading states
ct-spinnerct-spinner.mdSpinner
ct-snackbarct-snackbar.mdToast/snackbar
Layout & contentct-cardct-card.mdCard container
ct-menuct-menu.mdMenu / dropdown
ct-tabs, ct-tabct-tabs.md, ct-tab.mdTabs
ct-collapsect-collapse.mdCollapsible section
ct-list-itemct-list-item.mdList item
ct-iconct-icon.mdIcon
ct-imgct-img.mdImage
ct-tooltipct-tooltip.mdTooltip
Utilitiesct-helpersct-helpers.mdgetClient, getGeoLocation, sleep, PushID
ct-scroll-thresholdct-scroll-threshold.mdInfinite scroll trigger
ct-chartjs, ct-qr-tools, ct-prompct-chartjs.md, ct-qr-tools.md, ct-promp.mdCharts, QR, prompt

More components and containers: reference.md.

Uso con Lit / Vue / React

  • Lit: Import the component .js, then use the tag. Bind with .property=${value}, events with @eventname=${handler}. For custom events, e.detail holds the payload.
  • Vue: Import the component .js. Use v-model where supported (e.g. ct-input, ct-select). Events: @value, @input, etc.
  • React: Import the component .js. Use onClick, onChange, onValue (for custom events, e.detail). Declare JSX types for ct-* if needed (see docs examples).

Minimal examples

Lit (ct-button):

import { LitElement, html } from "lit";
import "@conectate/components/ct-button.js";

class MyEl extends LitElement {
  render() {
    return html`<ct-button raised @click=${() => console.log("ok")}>Click</ct-button>`;
  }
}

Vue (ct-input):

<template>
	<ct-input label="Name" v-model="name" />
</template>
<script setup>
import "@conectate/components/ct-input.js";
import { ref } from "vue";
const name = ref("");
</script>

React (ct-select):

import "@conectate/components/ct-select.js";

<ct-select label="Choice" items={items} value={val} onValue={(e) => setVal(e.detail.value)} />

For full examples per component, see examples/ (e.g. ct-button.md, ct-input.md).

Slots

Many components use default, prefix, and suffix slots. Check each component’s doc for exact slot names and behavior.

<ct-button raised>
	<span slot="prefix">↑</span>
	Label
	<span slot="suffix">↓</span>
</ct-button>

CSS variables

Components are themed via CSS custom properties (e.g. --color-primary, --border-radius, --ct-button-radius). Set them on the host, a wrapper, or :root. See each component’s doc for the full list.

ct-button {
	--color-primary: #00aeff;
	--ct-button-radius: 26px;
}

Eventos

  • Native events: click, input, change, blur, etc. Use as in standard HTML.
  • Custom events carry data in event.detail. Example: ct-select fires value with detail.value (and detail.old). In Lit: @value=${(e) => this.value = e.detail.value}.

For event names and payloads per component, see the corresponding doc in examples/ or reference.md.

Resources

Index of components and their documentation. All paths are relative to this skill (e.g. examples/ct-button.md).

Component / moduleDocumentation
Base
CtLitexamples/ct-lit.md
Buttons
ct-buttonexamples/ct-button.md
ct-button-helpersexamples/ct-button-helpers.md
ct-button-menuexamples/ct-button-menu.md
ct-button-splitexamples/ct-button-split.md
ct-icon-buttonexamples/ct-icon-button.md
Inputs & forms
ct-inputexamples/ct-input.md
ct-input-autocompleteexamples/ct-input-autocomplete.md
ct-input-containerexamples/ct-input-container.md
ct-input-phoneexamples/ct-input-phone.md
ct-input-wrapperexamples/ct-input-wrapper.md
ct-phone-inputexamples/ct-phone-input.md
ct-textareaexamples/ct-textarea.md
ct-textarea-autogrowexamples/ct-textarea-autogrow.md
ct-dateexamples/ct-date.md
ct-checkboxexamples/ct-checkbox.md
ct-radioexamples/ct-radio.md
ct-autocomplete-suggestionsexamples/ct-autocomplete-suggestions.md
Dialogs & overlay
ct-dialogexamples/ct-dialog.md
ct-dialog-builderexamples/ct-dialog-builder.md
ct-card-dialogexamples/ct-card-dialog.md
ct-bottom-sheetexamples/ct-bottom-sheet.md
ct-confirmexamples/ct-confirm.md
Selection
ct-selectexamples/ct-select.md
ct-select-dialogexamples/ct-select-dialog.md
ct-select-itemexamples/ct-select-item.md
Feedback & loading
ct-loadingexamples/ct-loading.md
ct-loading-barexamples/ct-loading-bar.md
ct-loading-placeholderexamples/ct-loading-placeholder.md
ct-spinnerexamples/ct-spinner.md
ct-snackbarexamples/ct-snackbar.md
Layout & content
ct-cardexamples/ct-card.md
ct-menuexamples/ct-menu.md
ct-tabsexamples/ct-tabs.md
ct-tabexamples/ct-tab.md
ct-collapseexamples/ct-collapse.md
ct-list-itemexamples/ct-list-item.md
ct-iconexamples/ct-icon.md
ct-imgexamples/ct-img.md
ct-tooltipexamples/ct-tooltip.md
Utilities & other
ct-helpersexamples/ct-helpers.md
ct-scroll-thresholdexamples/ct-scroll-threshold.md
ct-chartjsexamples/ct-chartjs.md
ct-qr-toolsexamples/ct-qr-tools.md
ct-prompexamples/ct-promp.md

For usage patterns, props, slots, CSS variables, and events, open the linked doc for each component.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

claw2ui

Generate interactive web pages (dashboards, charts, tables, reports) and serve them via public URL. Use this skill when the user explicitly asks for data vis...

Registry SourceRecently Updated
General

WeChat Article Summarize

Read one or more WeChat public account article links from mp.weixin.qq.com, extract cleaned full text and optional image links, summarize each article in Chi...

Registry SourceRecently Updated
General

Openfinance

Connect bank accounts to AI models using openfinance.sh

Registry SourceRecently Updated
General

---

合同审查清单AI助手 - 5类合同+3大特殊条款,风险识别与修改建议

Registry SourceRecently Updated