
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@serendie/symbols
Advanced tools
Serendie Symbols は、デジタルプロダクトのなかで汎用性高く使える、Serendie らしい 300 種類以上のアイコン集です。Serendie Design Systemの一部として提供されています。
ドキュメントサイトでは、Serendie Symbols の設計思想をまとめています。アイコンの一覧や検索はこちらを参照してください。
Serendie Symbols は React 環境を前提としています。
各アイコンを個別のコンポーネントとしてインポートする方法です。バンドルサイズの観点から この方法が推奨 されます。
import {
SerendieSymbolHome,
SerendieSymbolSettingsFilled,
} from "@serendie/symbols";
function MyComponent() {
return (
<>
<SerendieSymbolHome width={24} height={24} color="green" />
<SerendieSymbolSettingsFilled width={32} height={32} />
</>
);
}
利用可能なコンポーネント:
home
など) をパスカルケース (Home
) に変換し、プレフィックス SerendieSymbol
を付けたものがコンポーネント名になります (SerendieSymbolHome
)filled
) の場合は、さらにサフィックス Filled
が付きます (SerendieSymbolHomeFilled
)className
, onClick
など) を受け付けますSerendieSymbol
SerendieSymbol
コンポーネントを使用して、name
や variant
プロパティによって表示するアイコンを切り替える方法も提供しています。
import { SerendieSymbol } from "@serendie/symbols";
<SerendieSymbol name="home" size={24} variant="filled" color="blue" />;
利点:
name
, variant
) を変更することで、表示するアイコンを実行時に簡単に切り替えられますトレードオフと注意点:
SerendieSymbol
の Props:
name
: アイコン名を指定します。こちらの一覧を参照してください。variant?
: アイコンには線outlined
と塗りfilled
の 2 種類があります。デフォルトはoutlined
です。size?
: アイコンのサイズを指定します。SVG のwidth
とheight
に適用されます。デフォルトは24
です。color?
: アイコンの色を指定します。SVG のcolor
属性に適用されます。assets に含まれる SVG ファイルからコンポーネントを生成するため、アイコンを変更した場合は以下のコマンドを実行してください。
npm run generate
MIT ライセンスの下で配布されています。 詳しくはLICENSEを参照してください。
FAQs
300+ SVG icons as part of Serendie Design System by Mitsubishi Electric
We found that @serendie/symbols demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.