Check if input string is a valid Material icon.
(maybe_icon: str)
| 58 | |
| 59 | |
| 60 | def 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 | |
| 67 | def validate_icon_or_emoji(icon: str | None) -> str: |
no outgoing calls
no test coverage detected
searching dependent graphs…