From e80b157d9db47b390f58eb539ed87b4f790e4239 Mon Sep 17 00:00:00 2001 From: Ayo Ayco Date: Thu, 27 Mar 2025 13:34:36 +0100 Subject: [PATCH] feat(docs): reduce "just" --- docs/src/content/docs/guides/just-parts.md | 2 +- docs/src/content/docs/guides/library-size.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/content/docs/guides/just-parts.md b/docs/src/content/docs/guides/just-parts.md index b2b8397..2992754 100644 --- a/docs/src/content/docs/guides/just-parts.md +++ b/docs/src/content/docs/guides/just-parts.md @@ -3,7 +3,7 @@ title: Using Just Some Parts slug: 'just-parts' --- -You don't have to extend the whole base class just to use some features. All internals are exposed and usable separately so you can practically build the behavior on your own classes. +You don't have to extend the whole base class to use some features. All internals are exposed and usable separately so you can practically build the behavior on your own classes. Here's an example of using the `html` tag template on a class that extends from vanilla `HTMLElement`... also [View on CodePen ↗](https://codepen.io/ayoayco-the-styleful/pen/bGzJQJg?editors=1010). diff --git a/docs/src/content/docs/guides/library-size.md b/docs/src/content/docs/guides/library-size.md index e63f4dc..ae22065 100644 --- a/docs/src/content/docs/guides/library-size.md +++ b/docs/src/content/docs/guides/library-size.md @@ -5,4 +5,4 @@ slug: library-size All the functions and the base class in the library are minimalist by design and only contains what is needed for their purpose. -The main export (with `WebComponent` + `html`) is **1.7 kB** (min + gzip) according to [bundlephobia.com](https://bundlephobia.com/package/web-component-base@latest), and the `WebComponent` base class is just **1.08 kB** (min + brotli) according to [size-limit](http://github.com/ai/size-limit). +The main export (with `WebComponent` + `html`) is **1.7 kB** (min + gzip) according to [bundlephobia.com](https://bundlephobia.com/package/web-component-base@latest), and the `WebComponent` base class is **1.08 kB** (min + brotli) according to [size-limit](http://github.com/ai/size-limit).