<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>TadaoYamaoka</author_name>
  <author_url>https://blog.hatena.ne.jp/TadaoYamaoka/</author_url>
  <blog_title>TadaoYamaokaの開発日記</blog_title>
  <blog_url>https://tadaoyamaoka.hatenablog.com/</blog_url>
  <categories>
    <anon>React</anon>
    <anon>TailwindCSS</anon>
  </categories>
  <description>ほぼ個人メモ。HTMLのtextareaは、入力に応じて高さを自動で調整する機能がない。 ChatGPTの入力欄のように、高さが自動で変わるテキストエリアを作るには、CSSとJavaScriptで実装する必要がある。JavaScriptで高さを計算するのはややこしいので、非表示のdivタグに内容をコピーして、そのタグの高さにflexのrelativeとabsoluteを使って合わせる方法がある。 The Cleanest Trick for Autogrowing Textareas | CSS-Tricks - CSS-Tricksこのサンプルでは、Alpine.jsを使っていたので、Rea…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftadaoyamaoka.hatenablog.com%2Fentry%2F2023%2F06%2F06%2F234743&quot; title=&quot;React+TailwindCSSで高さ可変のテキストエリアを作る - TadaoYamaokaの開発日記&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>2023-06-06 23:47:43</published>
  <title>React+TailwindCSSで高さ可変のテキストエリアを作る</title>
  <type>rich</type>
  <url>https://tadaoyamaoka.hatenablog.com/entry/2023/06/06/234743</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
