Typographytypographyquoteglass
Glass Blockquote
Blockquote with glassmorphic backdrop and quote mark.
Live Preview
โGlass Blockquote
Usage
Copy and paste this code into your React component:
tsx
import { GlassBlockQuote } from 'react-component-kit-ui/typography';
<GlassBlockQuote>Content</GlassBlockQuote>Manual Installation
If you are not using the npm package, create a new file and paste the following code: src/components/GlassBlockQuote.tsx + GlassBlockQuote.css:
GlassBlockQuote.tsx
'use client';
import type { ReactNode } from 'react';
import './GlassBlockQuote.css';
/** GlassBlockQuote โ ported from astro-component-kit. */
export interface GlassBlockQuoteProps {
children?: ReactNode;
}
export function GlassBlockQuote({ children }: GlassBlockQuoteProps) {
return (
<>
<blockquote className="glass-quote" data-rk-b9e615="">
<div className="q-ico" data-rk-b9e615="">โ</div>
<p data-rk-b9e615="">{children}</p>
<footer data-rk-b9e615="">โ React Components Team</footer>
</blockquote>
</>
);
}
export default GlassBlockQuote;GlassBlockQuote.css
/* GlassBlockQuote โ ported from astro-component-kit (typography/GlassBlockQuote.astro) */
.glass-quote:where([data-rk-b9e615]) { position: relative; padding: 2.5rem; background: rgba(255,255,255,0.03); border-left: 4px solid #6366f1; border-radius: 0 20px 20px 0; backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.05); }
.q-ico:where([data-rk-b9e615]) { position: absolute; top: 0px; left: 1rem; font-size: 5rem; color: rgba(99,102,241,0.1); font-family: serif; line-height: 1; }
p:where([data-rk-b9e615]) { font-size: 1.2rem; color: #e2e8f0; font-style: italic; line-height: 1.6; margin: 0 0 1rem; position: relative; z-index: 1; }
footer:where([data-rk-b9e615]) { color: #64748b; font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }Quick Info
- Category
- Typography
- Filename
GlassBlockQuote.tsx- Dependencies
- None โ pure React + CSS
- Tags
- typographyquoteglass