mirror of
https://github.com/kogakure/website-astro-stefanimhoff.de.git
synced 2026-02-03 12:05:28 +00:00
30 lines
516 B
Plaintext
30 lines
516 B
Plaintext
---
|
|
// Cspell:words astro
|
|
export interface Props {
|
|
class?: string;
|
|
variant?: 'center' | 'left';
|
|
}
|
|
|
|
const { class: className, variant = 'center', ...props } = Astro.props;
|
|
---
|
|
|
|
<blockquote
|
|
class:list={[
|
|
'flex italic [&_p]:mbe-0',
|
|
{
|
|
'm-10': variant === 'center',
|
|
'mbe-10 mbs-10 mie-0 mis-0': variant === 'left',
|
|
},
|
|
className,
|
|
]}
|
|
{...props}
|
|
>
|
|
<pre
|
|
class:list={[
|
|
'whitespace-pre font-sans mie-0 mis-0',
|
|
{
|
|
'mbe-auto mbs-auto': variant === 'center',
|
|
},
|
|
]}><slot /></pre>
|
|
</blockquote>
|