@symply.io/basic-components 1.8.0-alpha.1 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -935,7 +935,7 @@ import { usePrompt } from '@symply.io/basic-components';
|
|
|
935
935
|
|
|
936
936
|
<h5>Usage</h5>
|
|
937
937
|
```typescript
|
|
938
|
-
const { showPrompt } = usePrompt();
|
|
938
|
+
const { showPrompt, hidePrompt } = usePrompt();
|
|
939
939
|
```
|
|
940
940
|
|
|
941
941
|
<h5>Props</h5>
|
|
@@ -945,6 +945,7 @@ const { showPrompt } = usePrompt();
|
|
|
945
945
|
| message | string \| 400 | | true | The prompt message you want to show. |
|
|
946
946
|
| timeout | number | 3500 | false | The number of milliseconds to wait before automatically calling the `onClose` function. |
|
|
947
947
|
| type | 'success' \| 'warning' \| 'info' \| 'error' | | true | The type of prompt. |
|
|
948
|
+
| action | ReactNode \| null | | false | Customized button(s) at the end of the prompt. If this property is set, the default close icon button will be replaced directly. |
|
|
948
949
|
|
|
949
950
|
|
|
950
951
|
|