We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
可読性・保守性を意識するために直接的なsvgファイルの参照を禁止する方針を考えています。
SVGを直接ファイルに記述する記法がありますが、こちらは再利用するのに向いていないため、コンポーネント化することをお願いします。
こちら(#86)のsrc/component/icons/AlertCircle.tsxを参考にお願いします。
src/component/icons/AlertCircle.tsx
スタイル情報を渡せるように書いていただけると他で利用する際に便利です。 interface Props { style: CSSProperties | undefined } 上記のようなpropsを定義し、style情報を渡したら適用されるように記述お願いします。
interface Props { style: CSSProperties | undefined }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
概要
可読性・保守性を意識するために直接的なsvgファイルの参照を禁止する方針を考えています。
コンポーネント化について
SVGを直接ファイルに記述する記法がありますが、こちらは再利用するのに向いていないため、コンポーネント化することをお願いします。
方法
こちら(#86)の
src/component/icons/AlertCircle.tsx
を参考にお願いします。props
スタイル情報を渡せるように書いていただけると他で利用する際に便利です。
interface Props { style: CSSProperties | undefined }
上記のようなpropsを定義し、style情報を渡したら適用されるように記述お願いします。
The text was updated successfully, but these errors were encountered: