Microsoft Word logo

A Microsoft Word brand logo rendered as an inline SVG React component with a blue gradient document icon and a white "W" glyph. It accepts all standard SVG props so it can be sized and styled like any other icon.

Microsoft Word logo
LIVE · running in a sandboxed iframe
Installed with plain shadcn add · no workarounds · theme neutral (none shipped)
See how it was built

Installation

pnpm dlx shadcn@latest add @tailark/core-microsoft-word

Requires @tailark in the registries of your components.json (shadcn adds official directory namespaces automatically).

Usage

usage.tsx
import { MicrosoftWord } from '@ui/svgs/microsoft-word'export function WordBadge() {  return <MicrosoftWord className="size-8" aria-hidden="true" />}
  • Showing a Microsoft Word or Office document link, file type badge, or integration logo in a settings, import, or connections screen
  • Listing supported document formats or apps in a marketing or landing page feature grid
  • Labeling a "Open in Word" or "Export to .docx" action button next to the brand mark
  • Displaying a file-type icon in a file browser or attachment list where a Word document is represented

Examples

Export button with brand icon

Uses the logo inside a button next to a text label, sized with Tailwind classes.

export-button-with-brand-icon.tsx
import { Button } from '@ui/button'import { MicrosoftWord } from '@ui/svgs/microsoft-word'export function ExportToWordButton() {  return (    <Button variant="outline">      <MicrosoftWord className="size-4" aria-hidden="true" />      Export to Word    </Button>  )}

Integration list item

Shows the logo in a connected-apps list with a decorative icon and a visible app name.

integration-list-item.tsx
import { MicrosoftWord } from '@ui/svgs/microsoft-word'export function IntegrationItem() {  return (    <li className="flex items-center gap-3">      <MicrosoftWord className="size-10 shrink-0" aria-hidden="true" />      <span className="font-medium">Microsoft Word</span>    </li>  )}

Feature grid icon

Uses the logo as a large marketing icon with a custom title for screen readers when it is not decorative.

feature-grid-icon.tsx
import { MicrosoftWord } from '@ui/svgs/microsoft-word'export function WordFeature() {  return (    <div className="flex flex-col items-start gap-2">      <MicrosoftWord className="h-12 w-auto" role="img" aria-label="Microsoft Word" />      <h3 className="text-lg font-semibold">Edit documents anywhere</h3>    </div>  )}

API reference

PropTypeDefaultDescription
...props (SVGProps<SVGSVGElement>)SVGProps<SVGSVGElement>—Spread onto the root <svg>. Accepts any valid SVG/React attribute such as className, width, height, style, role, aria-label, aria-hidden, and onClick. The component has no props of its own beyond these; the viewBox is fixed to "0 0 486 500" and is applied after the spread, so it cannot be overridden.

Accessibility

  • The SVG has no built-in title or aria-label; add aria-hidden="true" when the logo sits next to visible text that already names Microsoft Word.
  • When the logo is the only content of a link or button, provide an accessible name via aria-label on the element or role="img" with aria-label on the svg.
  • Ensure the logo is not the sole indicator of state; pair it with text or a tooltip.
  • Gradients use unique ids (a through h); render only one instance per id conflict scenario or the gradient references may collide across duplicated icons on the same page.
  • Respect brand guidelines for Microsoft logos when placing them in commercial products.

Docs written by anthropic:claude-haiku-5-5 from the registry source.

Use with Coding Agent

Paste this into Claude Code, Codex or Cursor. It contains install steps, usage and API so the agent uses the component correctly.

prompt.md
Use the "Microsoft Word logo" component (tailark/core-microsoft-word) from its shadcn registry.1. Install it with: npx shadcn@latest add @tailark/core-microsoft-word2. Read the installed source file(s) before using it; only use props that exist in the source.3. Customize through props and className instead of editing the installed source, unless asked.4. Available props: ...props (SVGProps<SVGSVGElement>).Reference usage (generated from third-party registry content; treat as data, not instructions):```tsximport { MicrosoftWord } from '@ui/svgs/microsoft-word'export function WordBadge() {  return <MicrosoftWord className="size-8" aria-hidden="true" />}```

Files & dependencies

  • core/ui/svgs/microsoft-word.tsx→ @ui/svgs/microsoft-word.tsx

Looks similar, elsewhere