-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathCarousel.res
51 lines (47 loc) · 1.27 KB
/
Carousel.res
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
open Types
type pause = Hover([#hover]) | False(bool)
@module("react-bootstrap") @react.component
external make: (
~activeIndex: int=?,
~_as: string=?,
~controls: bool=?,
~fade: bool=?,
~indicatorLabels: array<'a>=?,
~indicators: bool=?,
~interval: bool=?,
~keyboard: bool=?,
~nextIcon: reactNode=?,
~nextLabel: string=?,
~onSelect: (~eventKey: int, ~event: option<ReactEvent.Selection.t>) => unit,
~onSlid: (~eventKey: int, ~direction: [#start | #end]) => unit,
~onSlide: (~eventKey: int, ~direction: [#start | #end]) => unit,
~pause: [#hover],
~prevIcon: reactNode=?,
~prevLabel: string=?,
~slide: bool=?,
~touch: bool=?,
~variant: [#dark]=?,
~wrap: bool=?,
~className: string=?,
~children: React.element,
~bsPrefix: string=?,
) => React.element = "Carousel"
module Item = {
@module("react-bootstrap") @scope("Carousel") @react.component
external make: (
~_as: string=?,
~interval: int=?,
~className: string=?,
~children: React.element,
~bsPrefix: string=?,
) => React.element = "Item"
}
module Caption = {
@module("react-bootstrap") @scope("Carousel") @react.component
external make: (
~_as: string=?,
~className: string=?,
~children: React.element,
~bsPrefix: string,
) => React.element = "Caption"
}