Back to Ag Grid

Shared Components & Imports

external/ag-shared/prompts/skills/website-astro/shared-components.md

100.0.01.7 KB
Original Source

Shared Components & Imports

Available Shared Components

Key components from @ag-website-shared/components/:

ComponentImport PathPurpose
LicensePricinglicense-pricing/LicensePricingPricing page
Pipelinechangelog/PipelineDevelopment pipeline
WhatsNewwhats-new/pages/whats-new.astroRelease notes
DocsNavFromLocalStoragedocs-navigation/DocsNavFromLocalStorageDocs sidebar
FrameworkTextAnimationframework-text-animation/FrameworkTextAnimationAnimated framework text
LandingPageFWSelectorlanding-pages/LandingPageFWSelectorFramework selector
Footerfooter/FooterSite footer
SiteHeadersite-header/SiteHeader.astroSite header

Path Aliases

AliasPath
@components/*src/components/*
@layouts/*src/layouts/*
@pages-styles/*src/pages-styles/*
@stores/*src/stores/*
@utils/*src/utils/*
@constantssrc/constants.ts
@ag-website-shared/*external/ag-website-shared/src/*

React Component Hydration

When using React components in Astro pages, add hydration directives:

DirectiveWhen to Use
client:loadNeeds immediate interactivity (most common)
client:idleCan wait until browser is idle
client:visibleOnly when scrolled into view
(none)Static content only, no JavaScript
astro
<!-- Interactive immediately -->
<LicensePricing client:load />

<!-- Hydrate when idle -->
<NewsletterSignup client:idle />

<!-- Hydrate when visible -->
<VideoPlayer client:visible videoId="abc123" />