Skip to content
New issue

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を使ったアイコン・ロゴの仕様について #89

Open
charokoukuu opened this issue Sep 27, 2022 · 0 comments
Open

SVGを使ったアイコン・ロゴの仕様について #89

charokoukuu opened this issue Sep 27, 2022 · 0 comments

Comments

@charokoukuu
Copy link
Owner

charokoukuu commented Sep 27, 2022

概要

可読性・保守性を意識するために直接的なsvgファイルの参照を禁止する方針を考えています。

コンポーネント化について

SVGを直接ファイルに記述する記法がありますが、こちらは再利用するのに向いていないため、コンポーネント化することをお願いします。

方法

こちら(#86)のsrc/component/icons/AlertCircle.tsxを参考にお願いします。

props

スタイル情報を渡せるように書いていただけると他で利用する際に便利です。
interface Props { style: CSSProperties | undefined }
上記のようなpropsを定義し、style情報を渡したら適用されるように記述お願いします。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant