preskok/ui

Building Blocks for the Web

Clean, modern building blocks. Copy and paste into your apps. Works with all React frameworks. Open Source. Free forever.

Files
app/dashboard/page.tsx
import { ChartAreaInteractive } from "@/components/chart-area-interactive"
import { DataTable } from "@/components/data-table"
import { SectionCards } from "@/components/section-cards"
import AppSidebar from "@/components/app-sidebar"
import AppSidebarNav from "@/components/app-sidebar-nav"
import { Heading } from "@/components/ui/preskok-ui/heading"
import {
  SidebarInset,
  SidebarProvider,
} from "@/components/ui/preskok-ui/sidebar"

import data from "./data.json"

export default function Page() {
  return (
    <SidebarProvider>
      <AppSidebar collapsible="dock" />
      <SidebarInset>
        <AppSidebarNav />
        <div className="flex flex-1 flex-col">
          <div className="@container/main flex flex-1 flex-col gap-2">
            <div className="flex flex-col gap-4 p-4 md:gap-6 md:p-6 lg:p-6">
              <Heading>Basic</Heading>
              <SectionCards />
              <ChartAreaInteractive />
              <DataTable data={data} />
            </div>
          </div>
        </div>
      </SidebarInset>
    </SidebarProvider>
  )
}
A dashboard with sidebar, charts and data table.
dashboard-01
dashboard-01
Files
app/login/page.tsx
import { LoginForm } from "@/components/login-form"
import { PreskokIcon } from "@/components/ui/preskok-ui/preskok-icon"

export default function LoginPage() {
  return (
    <div className="bg-muted flex min-h-svh flex-col items-center justify-center gap-6 p-6 md:p-10">
      <div className="flex w-full max-w-sm flex-col gap-6">
        <a href="#" className="flex items-center gap-2 self-center font-medium">
          <div className="text-primary flex size-6 items-center justify-center rounded-md">
            <PreskokIcon className="size-4" />
          </div>
          Preskok d.o.o.
        </a>
        <LoginForm />
      </div>
    </div>
  )
}
A login page with a muted background color.
login-03
login-03
Files
app/login/page.tsx
import { LoginForm } from "@/components/login-form"

export default function LoginPage() {
  return (
    <div className="bg-muted flex min-h-svh flex-col items-center justify-center p-6 md:p-10">
      <div className="w-full max-w-sm md:max-w-3xl">
        <LoginForm />
      </div>
    </div>
  )
}
A login page with form and image.
login-04
login-04