-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPopup.hx
40 lines (36 loc) · 1.1 KB
/
Popup.hx
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
package react.semanticui;
import react.ReactComponent;
import react.BaseProps;
import haxe.extern.EitherType;
#if react_global @:native('semanticUIReact.Popup')
#else @:jsRequire('semantic-ui-react', 'Popup')
#end
extern class Popup extends ReactComponentOfProps<PopupProps> {}
typedef PopupProps = {
> BasePropsWithOptChildren,
> BaseSemanticProps,
?basic:Bool,
?content:ReactFragment,
?context:Dynamic,
?disabled:Bool,
?eventsEnabled:Bool,
?flowing:Bool,
?header:ReactFragment,
?hideOnScroll:Bool,
?hoverable:Bool,
?inverted:Bool,
?offset:EitherType<String, Float>,
?on:String, // hover, click, focus
?onClose:SyntheticEvent->PopupProps->Void,
?onMount:SyntheticEvent->PopupProps->Void,
?onOpen:SyntheticEvent->PopupProps->Void,
?onUnmount:SyntheticEvent->PopupProps->Void,
?pinned:Bool,
?popperDependencies:Array<Dynamic>,
?popperModifiers:Dynamic,
?position:String, // top center, top left, top right, bottom center, bottom left, bottom right, right center, left center
?positionFixed:Bool,
?size:String, // mini, tiny, small, large, huge
?trigger:ReactFragment,
?wide:EitherType<Bool, String>,
}