Feedback

PageLoading

A loading screen in CSS alone, so it moves before JavaScript runs. The command types itself, and the list of what is loading appears only if the wait passes 2.2s.

view .md
Preview
Loading the log
Installation
terminal
bash
npx @entrepta/cli@latest add page-loading

// Resolves dependencies, copies the source, and installs npm packages automatically.

Usage
page-loading.tsx
tsx
import { PageLoading } from "@/components/entrepta/page-loading"

// app/log/loading.tsx
export default function Loading() {
  return (
    <PageLoading
      command="ls ./log"
      crumb="log"
      label="the log"
      steps={["reading entries", "reading covers"]}
    />
  )
}
Props
PropTypeDefaultDescription
commandstring-The command the loaded page prints
crumbstring-Breadcrumb after ~
stepsstring[]-Shown only on a long wait
labelstring-Announced once: Loading {label}
Active theme: entrepta, dark mode.