-
Notifications
You must be signed in to change notification settings - Fork 0
/
Space.fs
34 lines (27 loc) · 1.11 KB
/
Space.fs
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
namespace Fable.Builders.AntDesign
open Fable.Builders.Common
open Fable.Core
open Fable.React
open Fable.Core.JsInterop
[<AutoOpen>]
module Space =
[<StringEnum; RequireQualifiedAccess>]
type SpaceSize =
| Large | Middle | Small
[<StringEnum; RequireQualifiedAccess>]
type SpaceAlign =
| Start
| End
| Center
| Baseline
[<StringEnum; RequireQualifiedAccess>]
type SpaceDirection =
| Vertical
| Horizontal
type SpaceBuilder() =
inherit ReactBuilder(import "Space" "antd")
[<CustomOperation("align")>] member inline _.align (x: DSLElement, v: SpaceAlign) = x.attr "align" v
[<CustomOperation("direction")>] member inline _.direction (x: DSLElement, v: SpaceDirection) = x.attr "direction" v
[<CustomOperation("size")>] member inline _.size (x: DSLElement, v: SpaceSize) = x.attr "size" v
[<CustomOperation("split")>] member inline _.split (x: DSLElement, v: ReactElement) = x.attr "split" v
[<CustomOperation("wrap")>] member inline _.wrap (x: DSLElement, v: bool) = x.attr "wrap" v