diff options
author | Joffrey Bion <joffrey.bion@booking.com> | 2020-03-28 13:50:35 +0100 |
---|---|---|
committer | Joffrey Bion <joffrey.bion@booking.com> | 2020-03-28 13:50:35 +0100 |
commit | 856dbcba2abb78d889045e96f47b6727b230359e (patch) | |
tree | bf4cfd236082bd0af7e75c7de050f832f9a6017c /sw-ui-kt/src/main/kotlin/blueprintjs.kt | |
parent | Add board components (diff) | |
download | seven-wonders-856dbcba2abb78d889045e96f47b6727b230359e.tar.gz seven-wonders-856dbcba2abb78d889045e96f47b6727b230359e.tar.bz2 seven-wonders-856dbcba2abb78d889045e96f47b6727b230359e.zip |
Add hand components
Diffstat (limited to 'sw-ui-kt/src/main/kotlin/blueprintjs.kt')
-rw-r--r-- | sw-ui-kt/src/main/kotlin/blueprintjs.kt | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/sw-ui-kt/src/main/kotlin/blueprintjs.kt b/sw-ui-kt/src/main/kotlin/blueprintjs.kt index 2a2bfdce..eaf36618 100644 --- a/sw-ui-kt/src/main/kotlin/blueprintjs.kt +++ b/sw-ui-kt/src/main/kotlin/blueprintjs.kt @@ -213,6 +213,45 @@ external class Button : AbstractButton { external class AnchorButton : AbstractButton { override fun render(): ReactElement } + +external interface IButtonGroupProps : IProps { + /** + * Text alignment within button. By default, icons and text will be centered + * within the button. Passing `"left"` or `"right"` will align the button + * text to that side and push `icon` and `rightIcon` to either edge. Passing + * `"center"` will center the text and icons together. + */ + var alignText: Alignment? + + /** + * Whether the button group should take up the full width of its container. + * @default false + */ + var fill: Boolean? + + /** + * Whether the child buttons should appear with minimal styling. + * @default false + */ + var minimal: Boolean? + + /** + * Whether the child buttons should appear with large styling. + * @default false + */ + var large: Boolean? + + /** + * Whether the button group should appear with vertical styling. + * @default false + */ + var vertical: Boolean? +} + +external class ButtonGroup : PureComponent<IButtonGroupProps, RState> { + override fun render(): ReactElement? +} + external interface IInputGroupProps : IControlledProps, IIntentProps, IProps { /** * Whether the input is non-interactive. |