MCPcopy Create free account
hub / github.com/streamlit/streamlit / is_material_icon

Function is_material_icon

lib/streamlit/string_util.py:60–64  ·  view source on GitHub ↗

Check if input string is a valid Material icon.

(maybe_icon: str)

Source from the content-addressed store, hash-verified

58
59
60def is_material_icon(maybe_icon: str) -> bool:
61 """Check if input string is a valid Material icon."""
62 from streamlit.material_icon_names import ALL_MATERIAL_ICONS
63
64 return maybe_icon in ALL_MATERIAL_ICONS
65
66
67def validate_icon_or_emoji(icon: str | None) -> str:

Callers 1

validate_material_iconFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…