Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/lume/core/component_loader.ts>ComponentFile

🔥 Static site generator for Deno 🦕
Very Popular
Go to Latest
interface ComponentFile
import { type ComponentFile } from "https://deno.land/x/lume@v1.15.3/core/component_loader.ts";

Properties

optional
name: string

Name of the component (used to get it from templates)

content: unknown

The content of the component

optional
css: string

Optional CSS code needed to style the component (global, only inserted once)

optional
js: string

Optional JS code needed for the component interactivity (global, only inserted once)

optional
inheritData: boolean

If false, the data from the parent directory will not be inherited