Skip to main content
Module

x/lume/core/component_loader.ts>Component

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

Properties

name: string

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

render: (props: Record<string, unknown>) => string

The function that will be called to render 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)