Loading...
Loading...
Create Astro components, pages, and layouts with accessible markup and minimal client-side JavaScript.
npx skill4agent add incluud/astro-agent-skills create-componentastro-best-practicessrc/components/src/pages/src/layouts/.astro---
interface Props {
title: string
variant?: 'primary' | 'secondary'
}
const { title, variant = 'primary' } = Astro.props
---
<section class:list={['card', variant]}>
<h2>{title}</h2>
<slot />
</section>
<style>
.card {
padding: 1rem;
}
</style>divclass:list---
import SearchBox from './SearchBox.tsx'
---
<SearchBox client:visible />alt