|
| 1 | +"""Stub file for reflex_ui/components/icons/simple_icon.py""" |
| 2 | + |
| 3 | +# ------------------- DO NOT EDIT ---------------------- |
| 4 | +# This file was generated by `reflex/utils/pyi_generator.py`! |
| 5 | +# ------------------------------------------------------ |
| 6 | +from collections.abc import Mapping, Sequence |
| 7 | +from typing import Any |
| 8 | + |
| 9 | +import reflex as rx |
| 10 | +from reflex.components.core.breakpoints import Breakpoints |
| 11 | +from reflex.event import EventType, PointerEventInfo |
| 12 | +from reflex.vars.base import Var |
| 13 | + |
| 14 | +class SimpleIcon(rx.Component): |
| 15 | + @classmethod |
| 16 | + def create( |
| 17 | + cls, |
| 18 | + *children, |
| 19 | + color: Var[str] | str | None = None, |
| 20 | + size: Var[int | str] | int | str | None = None, |
| 21 | + style: Sequence[Mapping[str, Any]] |
| 22 | + | Mapping[str, Any] |
| 23 | + | Var[Mapping[str, Any]] |
| 24 | + | Breakpoints |
| 25 | + | None = None, |
| 26 | + key: Any | None = None, |
| 27 | + id: Any | None = None, |
| 28 | + ref: Var | None = None, |
| 29 | + class_name: Any | None = None, |
| 30 | + custom_attrs: dict[str, Var | Any] | None = None, |
| 31 | + on_blur: EventType[()] | None = None, |
| 32 | + on_click: EventType[()] | EventType[PointerEventInfo] | None = None, |
| 33 | + on_context_menu: EventType[()] | EventType[PointerEventInfo] | None = None, |
| 34 | + on_double_click: EventType[()] | EventType[PointerEventInfo] | None = None, |
| 35 | + on_focus: EventType[()] | None = None, |
| 36 | + on_mount: EventType[()] | None = None, |
| 37 | + on_mouse_down: EventType[()] | None = None, |
| 38 | + on_mouse_enter: EventType[()] | None = None, |
| 39 | + on_mouse_leave: EventType[()] | None = None, |
| 40 | + on_mouse_move: EventType[()] | None = None, |
| 41 | + on_mouse_out: EventType[()] | None = None, |
| 42 | + on_mouse_over: EventType[()] | None = None, |
| 43 | + on_mouse_up: EventType[()] | None = None, |
| 44 | + on_scroll: EventType[()] | None = None, |
| 45 | + on_scroll_end: EventType[()] | None = None, |
| 46 | + on_unmount: EventType[()] | None = None, |
| 47 | + **props, |
| 48 | + ) -> SimpleIcon: |
| 49 | + """Create a SimpleIcon component. |
| 50 | +
|
| 51 | + Args: |
| 52 | + icon_name: The icon component name (e.g., "SiReact", "SiGithub", "SiPython") |
| 53 | + style: The style of the component. |
| 54 | + key: A unique key for the component. |
| 55 | + id: The id for the component. |
| 56 | + ref: The Var to pass as the ref to the component. |
| 57 | + class_name: The class name for the component. |
| 58 | + custom_attrs: custom attribute |
| 59 | + **props: Additional props like size, color |
| 60 | +
|
| 61 | + Returns: |
| 62 | + The component instance. |
| 63 | + """ |
| 64 | + |
| 65 | + def add_imports(self): ... |
| 66 | + |
| 67 | +simple_icon = SimpleIcon.create |
0 commit comments