# AUTO GENERATED FILE - DO NOT EDIT

import typing  # noqa: F401
from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401
from dash.development.base_component import Component, _explicitize_args

ComponentSingleType = typing.Union[str, int, float, Component, None]
ComponentType = typing.Union[
    ComponentSingleType,
    typing.Sequence[ComponentSingleType],
]

NumberType = typing.Union[
    typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex
]


class FefferyFancyMessage(Component):
    """A FefferyFancyMessage component.
美观消息提示组件FefferyFancyMessage

Keyword arguments:

- id (string; optional):
    组件唯一id.

- key (string; optional):
    对当前组件的`key`值进行更新，可实现强制重绘当前组件的效果.

- children (a list of or a singular dash component, string or number; optional):
    组件型，设置内嵌元素内容.

- className (string | dict; optional):
    当前组件css类名，支持[动态css](/advanced-classname).

- visible (boolean; default True):
    主动设置是否可见 默认值：`False`.

- position (a value equal to: 'top-left', 'top-center', 'top-right', 'bottom-left', 'bottom-center', 'bottom-right'; default 'top-center'):
    设置消息提示的弹出方位，可选的有`'top-left'`、`'top-center'`、`'top-right'`、`'bottom-left'`、`'bottom-center'`、`'bottom-right'`
    默认值：`'top-center'`.

- reverseOrder (boolean; default True):
    设置较新的消息提示是否从底部进行追加 默认值：`True`.

- containerClassName (string; optional):
    设置容器的`css`类名.

- containerStyle (dict; optional):
    设置容器的`css`样式.

- gutter (number; default 8):
    设置相邻消息提示之间的像素间距 默认值：`8`.

- type (a value equal to: 'blank', 'success', 'error'; default 'blank'):
    设置信息类型，可选的有`'blank'`、`'success'`、`'error'` 默认值：`'blank'`.

- duration (number; default 4000):
    设置消息提示显示时长（单位：毫秒） 默认值：`4000`.

- icon (a list of or a singular dash component, string or number; optional):
    自定义消息提示图标."""
    _children_props: typing.List[str] = ['icon']
    _base_nodes = ['icon', 'children']
    _namespace = 'feffery_utils_components'
    _type = 'FefferyFancyMessage'


    def __init__(
        self,
        children: typing.Optional[ComponentType] = None,
        id: typing.Optional[typing.Union[str, dict]] = None,
        key: typing.Optional[str] = None,
        style: typing.Optional[typing.Any] = None,
        className: typing.Optional[typing.Union[str, dict]] = None,
        visible: typing.Optional[bool] = None,
        position: typing.Optional[Literal["top-left", "top-center", "top-right", "bottom-left", "bottom-center", "bottom-right"]] = None,
        reverseOrder: typing.Optional[bool] = None,
        containerClassName: typing.Optional[str] = None,
        containerStyle: typing.Optional[dict] = None,
        gutter: typing.Optional[NumberType] = None,
        type: typing.Optional[Literal["blank", "success", "error"]] = None,
        duration: typing.Optional[NumberType] = None,
        icon: typing.Optional[ComponentType] = None,
        **kwargs
    ):
        self._prop_names = ['id', 'key', 'children', 'style', 'className', 'visible', 'position', 'reverseOrder', 'containerClassName', 'containerStyle', 'gutter', 'type', 'duration', 'icon']
        self._valid_wildcard_attributes =            []
        self.available_properties = ['id', 'key', 'children', 'style', 'className', 'visible', 'position', 'reverseOrder', 'containerClassName', 'containerStyle', 'gutter', 'type', 'duration', 'icon']
        self.available_wildcard_properties =            []
        _explicit_args = kwargs.pop('_explicit_args')
        _locals = locals()
        _locals.update(kwargs)  # For wildcard attrs and excess named props
        args = {k: _locals[k] for k in _explicit_args if k != 'children'}

        super(FefferyFancyMessage, self).__init__(children=children, **args)

setattr(FefferyFancyMessage, "__init__", _explicitize_args(FefferyFancyMessage.__init__))
