1 estrella en GitHub = 1 componente nuevo.

Dar una estrella
Estructura & Layoutlayoutfull-widthdesign

Full Bleed Section

Sección de ancho completo de borde a borde para contenidos inmersivos.

Vista Previa en Vivo

Full Bleed Section

Uso

Copia y pega este código directamente en tu componente React:

tsx
import { FullBleedSection } from 'react-component-kit-ui/layout';

<FullBleedSection>Content</FullBleedSection>

Instalación Manual

Si no estás usando el paquete npm, crea un archivo nuevo y pega el siguiente código: src/components/FullBleedSection.tsx + FullBleedSection.css:

FullBleedSection.tsx
'use client';

import type { ReactNode } from 'react';
import './FullBleedSection.css';

/**
 * FullBleedSection — Section that breaks out of the container to hit viewport edges.
 */
export interface FullBleedSectionProps {
  className?: string;
  children?: ReactNode;
}

export function FullBleedSection({ className = '',
  children
}: FullBleedSectionProps) {
  return (
    <>
      <section className={`full-bleed ${className}`} data-rk-4e57ad="">
        <div className="full-bleed-inner" data-rk-4e57ad="">
          {children ?? (<>
            <h3 data-rk-4e57ad="">Full Bleed Background Container</h3>
            <p data-rk-4e57ad="">Content breaks out to full viewport edges while inner content stays readable.</p>
          </>)}
        </div>
      </section>
    </>
  );
}

export default FullBleedSection;
FullBleedSection.css
/* FullBleedSection — ported from astro-component-kit (layout/FullBleedSection.astro) */

.full-bleed:where([data-rk-4e57ad]) {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: rgba(30, 41, 59, 0.4);
  border-top: 1px solid rgb(var(--ink-rgb, 255 255 255) / 0.06);
  border-bottom: 1px solid rgb(var(--ink-rgb, 255 255 255) / 0.06);
  padding: 3.5rem 1.5rem;
  box-sizing: border-box;
}
.full-bleed-inner:where([data-rk-4e57ad]) {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.full-bleed-inner:where([data-rk-4e57ad]) h3:where([data-rk-4e57ad]) {
  color: #fff;
  margin-bottom: 0.5rem;
}
.full-bleed-inner:where([data-rk-4e57ad]) p:where([data-rk-4e57ad]) {
  color: #94a3b8;
  margin: 0;
}

Información Rápida

Categoría
Estructura & Layout
Nombre de archivo
FullBleedSection.tsx
Dependencias
Ninguna — React + CSS puro
Etiquetas
layoutfull-widthdesign