-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathToast.res
More file actions
37 lines (34 loc) · 856 Bytes
/
Toast.res
File metadata and controls
37 lines (34 loc) · 856 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
open Types
@module("react-bootstrap") @react.component
external make: (
~animation: bool=?,
~autohide: bool=?,
~bg: variant=?,
~delay: int=?,
~onClose: unit => unit=?,
~show: bool=?,
~transition: reactNode=?,
~className: string=?,
~children: React.element,
~bsPrefix: string=?,
) => React.element = "Toast"
module Header = {
@module("react-bootstrap") @scope("Toast") @react.component
external make: (
~closeButton: bool=?,
~closeLabel: string=?,
~closeVariant: [#white]=?,
~className: string=?,
~children: React.element,
~bsPrefix: string=?,
) => React.element = "Header"
}
module Body = {
@module("react-bootstrap") @scope("Toast") @react.component
external make: (
~_as: string=?,
~className: string=?,
~children: React.element,
~bsPrefix: string,
) => React.element = "Body"
}