Status Page Get-in-Touch
openstatus/status-page-get-in-touchFreeBlock
Two flat button primitives (icon + text) with tooltip chrome for the contact link in a status page header
Install it
npx shadcn@latest add https://openstatus.dev/r/status-page-get-in-touch.jsonSource
1"use client";23import { useStatusBlocksLabels } from "@/components/blocks/status-i18n";4import { Button } from "@/components/ui/button";5import {6 Tooltip,7 TooltipContent,8 TooltipProvider,9 TooltipTrigger,10} from "@/components/ui/tooltip";11import { cn } from "@/lib/utils";1213/**14 * StatusPageGetInTouchIcon — ghost icon button with tooltip chrome.15 *16 * Pass the link element (with href + target + icon + sr-only label) as17 * children; the block layers Button styling, asChild Slot, and the tooltip.18 * Wraps in its own TooltipProvider so it's safe to mount anywhere.19 */20export function StatusPageGetInTouchIcon({21 className,22 children,23 ...props24}: React.ComponentProps<typeof Button>) {25 const labels = useStatusBlocksLabels();26 return (27 <TooltipProvider>28 <Tooltip>29 <TooltipTrigger asChild>30 <Button31 data-slot="status-page-get-in-touch-icon"32 variant="ghost"33 size="icon"34 type="button"35 className={cn("size-8", className)}36 asChild37 {...props}38 >39 {children}40 </Button>41 </TooltipTrigger>42 <TooltipContent>43 <p>{labels.getInTouch}</p>44 </TooltipContent>45 </Tooltip>46 </TooltipProvider>47 );48}4950/**51 * StatusPageGetInTouchButton — outlined text-label button.52 *53 * Pass the link element (with href + target) as children; the block layers54 * Button styling and asChild Slot. Default label is `labels.getInTouch` —55 * the caller's link content overrides it if they pass children with text.56 */57export function StatusPageGetInTouchButton({58 className,59 ...props60}: React.ComponentProps<typeof Button>) {61 return (62 <Button63 data-slot="status-page-get-in-touch-button"64 variant="outline"65 size="sm"66 type="button"67 className={className}68 asChild69 {...props}70 />71 );72}
What it pulls in
Other registry items
Files it writes
More from openstatus
All 26 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Status Bannerstatus-banner | openstatus | Blocks | Free | no deps | |
| Status Barstatus-bar | openstatus | Blocks | Free | 1 dep | |
| Status Blank Statesstatus-blank | openstatus | Blocks | Free | no deps | |
| Status Calendarstatus-calendar | openstatus | Blocks | Free | 3 deps | |
| Status Page Chromestatus-chrome | openstatus | Blocks | Free | no deps | |
| Status Page (Complete)status-complete | openstatus | Blocks | Free | no deps | |
| Status Componentstatus-component | openstatus | Blocks | Free | 2 deps | |
| Status Component Groupstatus-component-group | openstatus | Blocks | Free | no deps |
