1 estrella en GitHub = 1 componente nuevo.

Dar una estrella
Tipografíatypographylabellayout

Floating Label

Etiqueta tipográfica flotante con resplandor suave para resaltar características de producto.

Vista Previa en Vivo

PREMIUMFloating Label

Uso

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

tsx
import { FloatingTextLabel } from 'react-component-kit-ui/typography';

<FloatingTextLabel>Content</FloatingTextLabel>

Instalación Manual

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

FloatingTextLabel.tsx
'use client';

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

/** FloatingTextLabel — ported from astro-component-kit. */
export interface FloatingTextLabelProps {
  children?: ReactNode;
}

export function FloatingTextLabel({ children }: FloatingTextLabelProps) {
  return (
    <>
      <div className="f-label-wrap" data-rk-f9cb2b="">
        <span className="f-label" data-rk-f9cb2b="">PREMIUM</span>
        {children}
      </div>
    </>
  );
}

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

.f-label-wrap:where([data-rk-f9cb2b]) { position: relative; padding-top: 1.5rem; }
.f-label:where([data-rk-f9cb2b]) { position: absolute; top: 0; left: 0; font-size: 0.7rem; font-weight: 800; color: #6366f1; letter-spacing: 0.2em; text-transform: uppercase; }

Información Rápida

Categoría
Tipografía
Nombre de archivo
FloatingTextLabel.tsx
Dependencias
Ninguna — React + CSS puro
Etiquetas
typographylabellayout