Pular para o conteúdo

Lit

Este conteúdo não está disponível em sua língua ainda.

:::caution[Deprecated]This Astro integration to enable on-demand rendering and client-side hydration for your Lit custom elements was deprecated in Astro 5.0.:::

You can continue to use Lit for client components by adding a client-side script tag. For example:

<script>
  import "../components/MyTabs";
</script>

<my-tabs title="These are my tabs">...</my-tabs>

If you're interested in maintaining a Lit integration yourself, you may wish to use the last published version of @astrojs/lit as a starting point and upgrade the relevant packages.

Contribua Comunidade Sponsor