astroClientClickDirective() — astro Function Reference
Architecture documentation for the astroClientClickDirective() function in astro.config.mjs from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 6ca1e69c_7bde_117f_2830_9b4bd59dde0c["astroClientClickDirective()"] ae5b97ce_7775_0b0f_9084_e7b4e6e63d8f["astro.config.mjs"] 6ca1e69c_7bde_117f_2830_9b4bd59dde0c -->|defined in| ae5b97ce_7775_0b0f_9084_e7b4e6e63d8f style 6ca1e69c_7bde_117f_2830_9b4bd59dde0c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/e2e/fixtures/custom-client-directives/astro.config.mjs lines 9–21
function astroClientClickDirective() {
return {
name: 'astro-client-click',
hooks: {
'astro:config:setup': (opts) => {
opts.addClientDirective({
name: 'click',
entrypoint: fileURLToPath(new URL('./client-click.js', import.meta.url))
});
}
}
};
}
Domain
Subdomains
Source
Frequently Asked Questions
What does astroClientClickDirective() do?
astroClientClickDirective() is a function in the astro codebase, defined in packages/astro/e2e/fixtures/custom-client-directives/astro.config.mjs.
Where is astroClientClickDirective() defined?
astroClientClickDirective() is defined in packages/astro/e2e/fixtures/custom-client-directives/astro.config.mjs at line 9.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free