API Reference

Explore the core API methods and modular components available in the Elhhtss framework.

Core Module

Elhhtss()

Constructs a new application instance

const app = new Elhhtss({ debug: true });
                            

.run()

Starts the application lifecycle

app.run();
                            

.config()

Sets application configuration options

app.config({ theme: 'dark' });
                            

UI Components

ElButton()

Creates an interactive button component

const button = ElButton({ label: 'Click Me' });
                            

ElCard()

Creates a container with padding and drop shadow

const card = ElCard({ title: 'Metrics' });
                            

ElInput()

Creates a text input field with validation

const input = ElInput({ placeholder: 'Name' });
                            

Utility Functions

formatBytes()

Converts bytes to human-readable size

formatBytes(1048576); // "1.00MB"
                            

deepClone()

Creates deep copy of an object

const clone = deepClone(original);