Bidang bintang berkelip dengan bintang jatuh yang melesat setiap beberapa detik. Langit malam atau fajar hangat, semua dari warna token.
Private beta
Make a wish, then ship it
Turn a one line idea into a working preview before your coffee gets cold.
Private beta
Make a wish, then ship it
Turn a one line idea into a working preview before your coffee gets cold.
Private beta
Make a wish, then ship it
Turn a one line idea into a working preview before your coffee gets cold.
Private beta
Make a wish, then ship it
Turn a one line idea into a working preview before your coffee gets cold.
Private beta
Make a wish, then ship it
Turn a one line idea into a working preview before your coffee gets cold.
<x-markas.shooting-stars class="rounded-xl border border-line bg-surface px-6 py-14">
<div class="grid justify-items-center gap-4 text-center">
<p class="text-sm font-medium text-muted">Private beta</p>
<h2 class="text-2xl font-semibold text-balance text-ink">Make a wish, then ship it</h2>
<p class="max-w-80 text-sm text-muted">Turn a one line idea into a working preview before your coffee gets cold.</p>
<x-markas.button>Join the waitlist</x-markas.button>
</div>
</x-markas.shooting-stars>Contoh
Waitlist fajar
Early access opens at sunrise
We invite a new group every morning. Leave your email and we will save you a seat.
Early access opens at sunrise
We invite a new group every morning. Leave your email and we will save you a seat.
Early access opens at sunrise
We invite a new group every morning. Leave your email and we will save you a seat.
Early access opens at sunrise
We invite a new group every morning. Leave your email and we will save you a seat.
Early access opens at sunrise
We invite a new group every morning. Leave your email and we will save you a seat.
<x-markas.shooting-stars variant="dawn" :stars="50" :seed="4" class="rounded-xl border border-line bg-surface px-6 pt-10 pb-14">
<div class="grid justify-items-center gap-4 text-center">
<h3 class="text-xl font-semibold text-balance text-ink">Early access opens at sunrise</h3>
<p class="max-w-72 text-sm text-muted">We invite a new group every morning. Leave your email and we will save you a seat.</p>
<x-markas.button>Notify me</x-markas.button>
</div>
</x-markas.shooting-stars>Halaman masuk malam
<x-markas.shooting-stars :stars="120" frequency="low" trail-color="success" :seed="30" class="dark rounded-xl border border-line bg-canvas px-6 py-10">
<form class="mx-auto grid max-w-80 gap-4 rounded-xl border border-line bg-surface p-6">
<div class="grid gap-1">
<h3 class="text-lg font-semibold text-ink">Night shift login</h3>
<p class="text-sm text-muted">On call this week? Sign in to see open incidents.</p>
</div>
<x-markas.input label="Email" type="email" placeholder="you@company.com" />
<x-markas.input label="Password" type="password" />
<x-markas.button type="submit">Sign in</x-markas.button>
</form>
</x-markas.shooting-stars>Pengumuman acara
Live, 14 November, 06:00 UTC
Sunrise Summit: watch the keynote as it lands
Four talks, one hour, and a few surprises we have kept quiet all year.
Live, 14 November, 06:00 UTC
Sunrise Summit: watch the keynote as it lands
Four talks, one hour, and a few surprises we have kept quiet all year.
Live, 14 November, 06:00 UTC
Sunrise Summit: watch the keynote as it lands
Four talks, one hour, and a few surprises we have kept quiet all year.
Live, 14 November, 06:00 UTC
Sunrise Summit: watch the keynote as it lands
Four talks, one hour, and a few surprises we have kept quiet all year.
Live, 14 November, 06:00 UTC
Sunrise Summit: watch the keynote as it lands
Four talks, one hour, and a few surprises we have kept quiet all year.
<x-markas.shooting-stars variant="dawn" frequency="high" trail-color="danger" :stars="40" :seed="17" class="dark rounded-xl border border-line bg-canvas px-6 py-10">
<div class="grid gap-4">
<p class="text-sm font-medium text-muted">Live, 14 November, 06:00 UTC</p>
<h3 class="text-2xl font-semibold text-balance text-ink">Sunrise Summit: watch the keynote as it lands</h3>
<p class="max-w-80 text-sm text-muted">Four talks, one hour, and a few surprises we have kept quiet all year.</p>
<div class="flex gap-2">
<x-markas.button>Save my spot</x-markas.button>
<x-markas.button variant="ghost">Add to calendar</x-markas.button>
</div>
</div>
</x-markas.shooting-stars>Instalasi
npx markasui@latest add shooting-starspnpm dlx markasui@latest add shooting-starsyarn dlx markasui@latest add shooting-starsbunx --bun markasui@latest add shooting-stars- Pastikan Tailwind CSS v4 dan markas.css sudah terpasang. Lihat Instalasi.
- Salin source komponen di bawah ini ke
resources/views/components/markas/shooting-stars.blade.php.
- Pastikan Tailwind CSS v4 dan markas.css sudah terpasang. Lihat Instalasi.
- Salin source komponen di bawah ini ke
src/components/markas/ShootingStars.tsx.
- Pastikan Tailwind CSS v4 dan markas.css sudah terpasang. Lihat Instalasi.
- Salin source komponen di bawah ini ke
src/components/markas/ShootingStars.vue.
- Pastikan Tailwind CSS v4 dan markas.css sudah terpasang. Lihat Instalasi.
- Salin source komponen di bawah ini ke
src/lib/components/markas/ShootingStars.svelte.
- Pastikan Tailwind CSS v4 dan markas.css sudah terpasang. Lihat Instalasi.
- Salin source komponen di bawah ini ke
src/components/markas/ShootingStars.astro.
- Pastikan Tailwind CSS v4 dan markas.css sudah terpasang. Lihat Instalasi.
- Salin source komponen di bawah ini ke
src/app/markas/shooting-stars.component.ts.
Pemakaian
<x-markas.shooting-stars variant="night" frequency="normal" trail-color="primary" class="dark rounded-xl bg-canvas px-6 py-14">
<h2 class="text-2xl font-semibold text-ink">Buat permintaan, lalu rilis</h2>
<x-markas.button>Gabung waitlist</x-markas.button>
</x-markas.shooting-stars>Tidak butuh JavaScript atau Alpine.js.
import { Button } from "@/components/markas/Button";
import { ShootingStars } from "@/components/markas/ShootingStars";
<ShootingStars
variant="night"
frequency="normal"
trailColor="primary"
className="dark rounded-xl bg-canvas px-6 py-14"
>
<h2 className="text-2xl font-semibold text-ink">
Buat permintaan, lalu rilis
</h2>
<Button>Gabung waitlist</Button>
</ShootingStars>;<template>
<ShootingStars
variant="night"
frequency="normal"
trail-color="primary"
class="dark rounded-xl bg-canvas px-6 py-14"
>
<h2 class="text-2xl font-semibold text-ink">Buat permintaan, lalu rilis</h2>
<Button>Gabung waitlist</Button>
</ShootingStars>
</template><script lang="ts">
import Button from "$lib/components/markas/Button.svelte";
import ShootingStars from "$lib/components/markas/ShootingStars.svelte";
</script>
<ShootingStars
variant="night"
frequency="normal"
trailColor="primary"
class="dark rounded-xl bg-canvas px-6 py-14"
>
<h2 class="text-2xl font-semibold text-ink">Make a wish, then ship it</h2>
<Button>Join the waitlist</Button>
</ShootingStars>---
import Button from "@/components/markas/Button.astro";
import ShootingStars from "@/components/markas/ShootingStars.astro";
---
<ShootingStars
variant="night"
frequency="normal"
trailColor="primary"
class="dark rounded-xl bg-canvas px-6 py-14"
>
<h2 class="text-2xl font-semibold text-ink">Make a wish, then ship it</h2>
<Button>Join the waitlist</Button>
</ShootingStars>import { Component } from "@angular/core";
import { Button } from "./markas/button.component";
import { ShootingStars } from "./markas/shooting-stars.component";
@Component({
selector: "app-waitlist",
imports: [Button, ShootingStars],
template: `
<div
markas-shooting-stars
variant="night"
frequency="normal"
trailColor="primary"
class="dark rounded-xl bg-canvas px-6 py-14"
>
<h2 class="text-2xl font-semibold text-ink">Make a wish, then ship it</h2>
<button markas-button>Join the waitlist</button>
</div>
`,
})
export class Waitlist {}Angular memakai attribute selector pada div native, jadi class, aria-*, dan atribut lain tetap di elemen akar.
- Tiga bintang jatuh berbagi satu putaran CSS, jadi satu melintas setiap sepertiga putaran. Di sisa putaran mereka tidak terlihat.
- Posisi bintang dan lintasan dihitung dari
seeddengan bilangan bulat, jadi semua framework merender langit yang sama. - Komponen ini terpisah dari Stars Background dengan keyframe sendiri, jadi keduanya bisa ada di halaman yang sama.
- Dengan reduced motion bintang berhenti berkelip dan lintasan diam.
- Komponen ini tidak punya teks bawaan, jadi tidak ada prop label yang perlu diterjemahkan.
Props
| Nama | Tipe | Default | Keterangan |
|---|---|---|---|
variant | night | dawn | night | night: bintang di seluruh area. dawn: bintang di langit atas dengan cahaya hangat naik dari bawah. |
frequency | low | normal | high | normal | Seberapa sering bintang jatuh muncul: kira-kira tiap 5, 3, atau 1,5 detik. |
trailColor | muted | ink | primary | success | warning | danger | primary (night), warning (dawn) | Warna token ekor bintang jatuh. Kepalanya selalu memakai ink. |
stars | number | 70 | Jumlah bintang latar yang berkelip, maksimal 300. |
seed | number | 11 | Bilangan bulat yang menentukan posisi bintang dan lintasan. Seed sama selalu menghasilkan langit yang sama. |
children / slot | slot / ReactNode | - | Konten yang tampil di atas langit. |
Aksesibilitas
- Lapisan langit memakai aria-hidden dan mengabaikan pointer.
- Dengan reduced motion, bintang berhenti berkelip dan bintang jatuh diam sebagai garis pendek.
Komponen terkait
Komponen latar lain dengan class yang sama di setiap framework.
- Aurora BackgroundBidang warna bercahaya yang bergeser pelan di belakang konten, dari token primary dan satu token aksen.
- Background BeamsBerkas cahaya tipis melengkung yang mengalir, berdenyut, atau jatuh dan memercik di belakang konten. Murni SVG dan CSS, tanpa JavaScript.
- Background BoxesGrid kotak miring, datar, atau berperspektif yang menyala di bawah kursor lalu memudar, hanya dengan CSS hover.
- Background LinesGaris SVG yang tergambar lalu menghilang bergantian, berupa gelombang, sinar dari satu titik, atau kisi. Dibuat untuk hero.
- Dot PatternGrid titik kecil di belakang konten, dengan pudar radial atau linear opsional. Murni CSS, tanpa JavaScript.
- Gradient BorderMembungkus kartu, tombol, atau kolom dengan border gradien bergerak yang berputar, berkilau, atau berdenyut, dengan pendar lembut opsional.