Forwarded Label
wa-ui/forwarded-labelFreeComponent
Small italic label indicating a forwarded or frequently forwarded message.
Install it
npx shadcn@latest add https://ui.meta-cloud-api.site/r/forwarded-label.jsonSource
1"use client";23import * as React from "react";4import { cn } from "@/lib/utils";5import "@/components/ui/whatsapp/styles/whatsapp.css";67export interface ForwardedLabelProps extends React.HTMLAttributes<HTMLParagraphElement> {8 /** Show "Forwarded many times" instead of "Forwarded" */9 frequently?: boolean;10}1112/**13 * Forwarded/frequently-forwarded label — place above message body inside a bubble.14 */15const ForwardedLabel = React.forwardRef<HTMLParagraphElement, ForwardedLabelProps>(16 ({ className, frequently = false, ...props }, ref) => {17 return (18 <p19 ref={ref}20 className={cn("mb-[4px] flex items-center gap-[4px] text-[12px] italic text-wa-text-secondary", className)}21 {...props}22 >23 <svg viewBox="0 0 24 24" width="12" height="12" fill="currentColor">24 <path d="M13.175 12H7c-.83 0-1.54.25-2.12.65C4.42 13 4 13.73 4 14.5V17h16v-2.5c0-.77-.42-1.5-1.12-1.96L13.175 12zm5.825 0V4l-4 4 4 4zm-9.5-2c1.38 0 2.5-1.12 2.5-2.5S10.88 5 9.5 5 7 6.12 7 7.5 8.12 10 9.5 10z" />25 </svg>26 {frequently ? "Forwarded many times" : "Forwarded"}27 </p>28 );29 }30);31ForwardedLabel.displayName = "ForwardedLabel";3233export { ForwardedLabel };
Files it writes
More from wa-ui
All 29 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Action Buttonaction-button | wa-ui | Components | Free | 1 dep · 2 files | |
| Call Permissioncall-permission | wa-ui | Components | Free | 1 dep · 2 files | |
| Carousel Templatecarousel-template | wa-ui | Components | Free | 1 dep · 3 files | |
| Chat Bubblechat-bubble | wa-ui | Components | Free | no deps · 2 files | |
| Chat Headerchat-header | wa-ui | Components | Free | no deps · 2 files | |
| Chat List Itemchat-list-item | wa-ui | Components | Free | no deps · 2 files | |
| Chat Menuchat-menu | wa-ui | Components | Free | 1 dep · 2 files | |
| Contact Bubblecontact-bubble | wa-ui | Components | Free | 1 dep · 3 files |
