<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>panda_noir</author_name>
  <author_url>https://blog.hatena.ne.jp/panda_noir/</author_url>
  <blog_title>Panda Noir</blog_title>
  <blog_url>https://www.pandanoir.info/</blog_url>
  <categories>
    <anon>React</anon>
    <anon>TypeScript</anon>
  </categories>
  <description>A. 型定義的には同じ *1。HTML要素向けのComponentPropsの実装でXxxHTMLAttributesが使われる、という関係。 結論としては同じものとみなして良いんですが、じゃあどう使い分ければ良いのか? という話ですよね。この話をするにはそもそもComponentPropsが何者なのかを知る必要があります。 ComponentPropsは コンポーネントのプロパティを取得するユーティリティ型 ComponentPropsは、渡されたコンポーネントまたはHTML要素のプロパティを取得するユーティリティ型 です。こんな感じになります↓ const MyComponent = (p…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.pandanoir.info%2Fentry%2F2025%2F11%2F02%2F133926&quot; title=&quot;ComponentPropsWithoutRef&amp;lt;&amp;#39;button&amp;#39;&amp;gt; と ButtonHTMLAttributes&amp;lt;HTMLButtonElement&amp;gt; は何が違うのか? - Panda Noir&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-11-02 13:39:26</published>
  <title>ComponentPropsWithoutRef&lt;'button'&gt; と ButtonHTMLAttributes&lt;HTMLButtonElement&gt; は何が違うのか?</title>
  <type>rich</type>
  <url>https://www.pandanoir.info/entry/2025/11/02/133926</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
