Skip to content

Commit 86d0b58

Browse files
author
matdsoupe
committed
adds Spinner and Table components
1 parent 7590940 commit 86d0b58

File tree

3 files changed

+38
-0
lines changed

3 files changed

+38
-0
lines changed

src/ReactBootstrap.res

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,13 @@ module Modal = Modal
2626
module Nav = Nav
2727
module NavDropdown = NavDropdown
2828
module Navbar = Navbar
29+
module Offcanvas = Offcanvas
30+
module Overlay = Overlay
31+
module OverlayTrigger = OverlayTrigger
32+
module Tooltip = Tooltip
33+
module Popover = Popover
34+
module Pagination = Pagination
35+
module Placeholder = Placeholder
36+
module ProgressBar = ProgressBar
37+
module Spinner = Spinner
38+
module Table = Table

src/Spinner.res

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
open Types
2+
3+
@module("react-bootstrap") @react.component
4+
external make: (
5+
~animation: [#glow | #border],
6+
~_as: string=?,
7+
~children: React.element=?,
8+
~role: string=?,
9+
~size: [#sm]=?,
10+
~variant: variant=?,
11+
~className: string=?,
12+
~bsPrefix: string=?,
13+
) => React.element = "Spinner"

src/Table.res

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
type responsive = Bool(bool) | Size([#xs | #sm | #md | #lg | #xl | #xxl])
2+
3+
@module("react-bootstrap") @react.component
4+
external make: (
5+
~bordered: bool=?,
6+
~borderless: bool=?,
7+
~hover: bool=?,
8+
~responsive: responsive=?,
9+
~size: string=?,
10+
~striped: bool=?,
11+
~variant: [#light | #dark]=?,
12+
~className: string=?,
13+
~children: React.element,
14+
~bsPrefix: string=?,
15+
) => React.element = "Table"

0 commit comments

Comments
 (0)