NoticeBarProps: {
    closeable?: boolean;
    color?: "default" | "alert" | "error" | "info";
    content: ReactNode;
    delay?: number;
    extra?: ReactNode;
    icon?: ReactNode;
    onClick?: (() => void);
    onClose?: (() => void);
    speed?: number;
    wrap?: boolean;
} & NativeProps<"--background-color" | "--border-color" | "--text-color" | "--font-size" | "--icon-font-size" | "--height">

Type declaration

  • Optional closeable?: boolean

    Whether it can be closed

  • Optional color?: "default" | "alert" | "error" | "info"

    The type of the NoticeBar

  • content: ReactNode

    The content of the NoticeBar

  • Optional delay?: number

    TDelay to start scrolling, unit ms

  • Optional extra?: ReactNode

    Additional operating area, displayed to the left of the close button

  • Optional icon?: ReactNode

    Radio icon on the left

  • Optional onClick?: (() => void)

    Event when click

      • (): void
      • Event when click

        Returns void

  • Optional onClose?: (() => void)

    Callback when closed

      • (): void
      • Callback when closed

        Returns void

  • Optional speed?: number

    Scroll speed, unit px/s

  • Optional wrap?: boolean

    Whether to display multiple lines

Generated using TypeDoc