βββ my-button
β βββ my-button.{js,jsx,ts,tsx}
β βββ my-button.test.{js,jsx,ts,tsx}
β βββ my-button.stories.js
β βββ my-button.md
βββ my-input
βββ my-input.{js,jsx,ts,tsx}
βββ my-input.test.{js,jsx,ts,tsx}
βββ my-input.stories.js
βββ my-input.mdsrc/elements: groups and export components as CustomElementsβββ src
β βββ define.{js,ts,jsx,tsx}
β βββ elements.{js,ts,jsx,tsx}
β βββ define.test.{js,ts,jsx,tsx}
β βββ slots
β βββ my-sub-element-1.{js,jsx,ts,tsx}
β βββ my-sub-element-2.{js,jsx,ts,tsx}
βββ README.md
βββ index.html
βββ .npmignore
βββ package.json
βββ tsconfig.json
import "my-component"; // internalmente define el customTag
import { MyElement } from "my-component/elements"; // no define el customTagexports src/{define,elements}.{ts,tsx} --exports --typesFirst thanks for using Atomico π, in this guide you will find some useful tips when developing with Atomico, all with the aim that your webcomponents are sustainable and scalable over time.