<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>chamotarooo</author_name>
  <author_url>https://blog.hatena.ne.jp/chamotarooo/</author_url>
  <blog_title>chamotaroooのブログ</blog_title>
  <blog_url>https://chamotaro.hatenablog.com/</blog_url>
  <categories>
    <anon>技術</anon>
  </categories>
  <description>はじめに 吹き出しの付いたラベルを作った。 「会員限定」と書いた青い角丸のラベルの下に、小さな下向きの三角を付ける。 三角は画像ファイルを使わず、React のコードに SVG で直接書いた。 &lt;svg aria-hidden className=&quot;fill-brand&quot; focusable=&quot;false&quot; height=&quot;8&quot; viewBox=&quot;0 0 12 8&quot; width=&quot;12&quot;&gt; &lt;polygon points=&quot;0,0 12,0 6,8&quot; /&gt; &lt;/svg&gt; 3行に7つの属性が並ぶ。 12と8が何度も出てくるが、どれが大きさを決め、どれが形を決めるのかは、見ただけでは分からない。 …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchamotaro.hatenablog.com%2Fentry%2Ftech%2Finline-svg-triangle&quot; title=&quot;コードに直接書いた三角のSVGを属性ごとに読む - chamotaroooのブログ&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>2026-10-09 20:45:08</published>
  <title>コードに直接書いた三角のSVGを属性ごとに読む</title>
  <type>rich</type>
  <url>https://chamotaro.hatenablog.com/entry/tech/inline-svg-triangle</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
