You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AlertDialog and its components compose the **[Modal](/modal)** component, so all the [`Modal props`](/modal#props) can be passed to it. The only exception is that it requires `leastDestructiveRef` which is similar to `initialFocusRef` of `Modal`.
130
+
AlertDialog and its components compose the **[Modal](/modal)** component, so all the [`Modal props`](/modal#h2-props) can be passed to it. The only exception is that it requires `leastDestructiveRef` which is similar to `initialFocusRef` of `Modal`.
- Props like **cancelButtonIndex**, **cancelButtonIndex** are _no longer required_ as components like `Actionsheet.Item` can be customised as per need.
13
+
- Props like **cancelButtonIndex** are _no longer required_ as components like `Actionsheet.Item` can be customised as per need.
14
14
-**title** (prop) → NativeBase components such as `Heading` and `Text` can be used inside `ActionSheet.Content` to show the title.
15
15
- Declarative approach to show and hide using `isOpen` prop, instead of `show()` and `hide()`.
Copy file name to clipboardExpand all lines: docs/3.0.x/migration/button.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ Migrating Button components can broadly described in these points:
16
16
- Colors of the Buttons:
17
17
In v3 the color is controlled by `colorScheme` prop. So all the color providing props [**light**, **info**, **success**, **warning**, **danger** and **dark**] can be passed as value (and more) to `colorScheme` props.
18
18
- Design of the Button:
19
-
With v3 we're providing some mostly frequently used designs as `variants`[**solid**, **outline**, **ghost**, **link** and **unstyled**] and lot more customisation.
19
+
With v3 we're providing some most frequently used designs as `variants`[**solid**, **outline**, **ghost**, **link** and **unstyled**] and lot more customisation.
20
20
- Sizes of the Button:
21
21
In v3 the size is controlled by `size` prop. And it accepts pre-defined sizes [ like xs, sm md, lg ] and also custom values.
| variant | `native`, `styled` | The variant of the select style to use. | `native` |
52
52
| placeholder | string | The placeholder attribute specifies a short hint that describes the expected value of a selected field (only for styled variant). | - |
53
-
| \_placeholder | [`TextProps`](text.md#props) | Text props to be applied to placeholder (only for styled variant). | - |
53
+
| \_placeholder | [`TextProps`](text.md#h2-props) | Text props to be applied to placeholder (only for styled variant). | - |
54
54
| selectedValue | string | The default value which is selected. | - |
55
55
| onValueChange | function | Callback for on change on the input value. | - |
56
56
| selectedItemBg | string | Background color for the selected item (only for styled variant). | `blue.500` |
57
-
| \_selectedItem | [`TextProps`](text.md#props) | Text prop for selected item (only for styled variant). | - |
57
+
| \_selectedItem | [`TextProps`](text.md#h2-props) | Text prop for selected item (only for styled variant). | - |
58
58
| isDisabled | boolean | If true, the button will be disabled (not supported on ios for native variant). | - |
59
59
| dropdownIcon | JSX.Element | If given, updates the dropdown Icon (only for styled variant). | - |
60
60
| dropdownOpenIcon | JSX.Element | If given, updates the dropdown Icon when opened (only for styled variant). | - |
61
61
| dropdownCloseIcon | JSX.Element | If given, updates the dropdown Icon when closed (only for styled variant). | - |
62
62
| \_ios | _StyleProps_ | Props which you only want to pass to ios device. | - |
63
63
| \_android | _StyleProps_ | Props which you only want to pass to android device. | - |
64
64
| \_web | _StyleProps_ | Props which you only want to pass to web device. | - |
65
-
| \_item | [`TextProps`](text.md#props) | TextProps to be applied to the label (only for styled variant). | - |
65
+
| \_item | [`TextProps`](text.md#h2-props) | TextProps to be applied to the label (only for styled variant). | - |
66
66
| androidMode <AndroidBadge/> | `dialog`, `dropdown` | On Android, specifies how to display the selection items when the user taps on the picker (only for native variant). | `dialog` |
67
67
| androidIconColor <AndroidBadge/> | string | On Android, specifies color of dropdown triangle. Input value can any color from theme like `default.300` (only for native variant). | - |
68
68
| androidPrompt <AndroidBadge/> | string | On Android, prompt string for this picker, used on Android in dialog mode as the title of the dialog (only for native variant). | - |
@@ -76,7 +76,7 @@ import { Select } from 'native-base';
76
76
| label | string | The label which will be displayed. | - |
77
77
| value | string | The value to be used for the item. This is the value that will be returned on form submission. | - |
78
78
| isDisabled | boolean | If true, the item will be disabled (only for `styled` variant). | - |
79
-
| \_label | [`TextProps`](text.md#props) | TextProps to be applied to label (only for `styled` variant). | - | -->
79
+
| \_label | [`TextProps`](text.md#h2-props) | TextProps to be applied to label (only for `styled` variant). | - | -->
0 commit comments