![](https://cdn-ak-scissors.b.st-hatena.com/image/square/c94fd3f898c51df7a6b6d07176514a3bf834a090/height=288;version=1;width=512/https%3A%2F%2Fres.cloudinary.com%2Fzenn%2Fimage%2Fupload%2Fs--FMi8dyz4--%2Fc_fit%252Cg_north_west%252Cl_text%3Anotosansjp-medium.otf_55%3ASvelte%2525E3%252581%2525A7%2525E3%252582%2525B3%2525E3%252583%2525B3%2525E3%252583%25259D%2525E3%252583%2525BC%2525E3%252583%25258D%2525E3%252583%2525B3%2525E3%252583%252588%2525E4%2525BD%25259C%2525E3%252582%25258B%2525E3%252581%2525A8%2525E3%252581%25258D%2525E3%252581%2525ABHTML%2525E5%2525B1%25259E%2525E6%252580%2525A7%2525E3%252581%2525AEtype%2525E8%2525A3%25259C%2525E5%2525AE%25258C%2525E3%252582%252592%2525E5%25258A%2525B9%2525E3%252581%25258B%2525E3%252581%25259B%2525E3%252582%25258B%2525E6%252596%2525B9%2525E6%2525B3%252595%252Cw_1010%252Cx_90%252Cy_100%2Fg_south_west%252Cl_text%3Anotosansjp-medium.otf_37%3Aqaynam%252Cx_203%252Cy_121%2Fg_south_west%252Ch_90%252Cl_fetch%3AaHR0cHM6Ly9saDMuZ29vZ2xldXNlcmNvbnRlbnQuY29tL2EtL0FPaDE0R2lqMTRfSGhpb09SazlXcGlSV29ZUjJDdWVHRW9ab3NwcFFER24zPXM5Ni1j%252Cr_max%252Cw_90%252Cx_87%252Cy_95%2Fv1627283836%2Fdefault%2Fog-base-w1200-v2.png)
エントリーの編集
![loading...](https://b.st-hatena.com/bdefb8944296a0957e54cebcfefc25c4dcff9f5f/images/v4/public/common/loading@2x.gif)
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
Svelteでコンポーネント作るときにHTML属性のtype補完を効かせる方法
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
![アプリのスクリーンショット](https://b.st-hatena.com/bdefb8944296a0957e54cebcfefc25c4dcff9f5f/images/v4/public/entry/app-screenshot.png)
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
Svelteでコンポーネント作るときにHTML属性のtype補完を効かせる方法
import { ButtonHTMLAttributes, FC } from 'react'; type ButtonProps = ButtonHTMLAttributes<{}> exp... import { ButtonHTMLAttributes, FC } from 'react'; type ButtonProps = ButtonHTMLAttributes<{}> export function Button(props: ButtonProps) { return <button {...props}>hello</button> } <script lang="ts"> import type { HTMLButtonAttributes } from "svelte/elements"; interface $$Props extends HTMLButtonAttributes {} </script> <button {...$$props}> hello </button>