def btn(
        self,
        name,
        label,
        icon=None,
        variant=None,
        disabled=False,
        on_click=None,
        prompt=False,
        params=None,
        space=None,
        href=None,
        icon_position="left",
        **kwargs,
    ):
        """Defines a button or icon button to display to the user as a :class:`Button`.

        Examples::

            import fiftyone.operators.types as types

            inputs = types.Object()
            inputs.btn(
                "greet",
                label="Say Hi!",
                icon="waving_hand",
                variant="round",
                on_click="print_stdout",
                params={"msg": "Hi!"},
            )

        Args:
            name: the name of the property
            label: the label of the button
            icon (None): the name of the icon to display
            icon_position ("left"): the position of the icon. Can be ``"left"`` or ``"right"``
            disabled (False): whether the button is disabled
            variant (None): the variant of the button. Can be ``"contained"``, ``"outlined"``,
                ``"round"`` or ``"square"``
            on_click (None): the name of the operator to execute when the button is clicked
            prompt (False): whether to prompt the user before executing the operator
            params (None): the parameters to pass to the operator
            space (None): An int specifying how much vertical/horizontal space to allocate out
                of ``12`` depending on the orientation of the parent container
            href (None): the URL to navigate to when the button is clicked
        """
        btn = Button(
            href=href,
            icon=icon,
            icon_position=icon_position,
            disabled=disabled,
            label=label,
            operator=on_click,
            params=params,
            prompt=prompt,
            space=space,
            variant=variant,
            **kwargs,
        )

        return self.view(name, btn)
Defines a button or icon button to display to the user as a :class:`Button`.

        Examples::

            import fiftyone.operators.types as types

            inputs = types.Object()
            inputs.btn(
                "greet",
                label="Say Hi!",
                icon="waving_hand",
                variant="round",
                on_click="print_stdout",
                params={"msg": "Hi!"},
            )

        Args:
            name: the name of the property
            label: the label of the button
            icon (None): the name of the icon to display
            icon_position ("left"): the position of the icon. Can be ``"left"`` or ``"right"``
            disabled (False): whether the button is disabled
            variant (None): the variant of the button. Can be ``"contained"``, ``"outlined"``,
                ``"round"`` or ``"square"``
            on_click (None): the name of the operator to execute when the button is clicked
            prompt (False): whether to prompt the user before executing the operator
            params (None): the parameters to pass to the operator
            space (None): An int specifying how much vertical/horizontal space to allocate out
                of ``12`` depending on the orientation of the parent container
            href (None): the URL to navigate to when the button is clicked
        
fiftyone/operators/types.py