Ask your Question
Does it make sense to extend <Dialog.Button /> to render children? My use case is that I e.g. display a confirmation dialog. Once the user presses "Ok" I want to disable the button (already possible) and display a loading indicator:
<Dialog.Button disabled={loading}>
{loading && <LoadingIndicator />}
<Text>Confirm</Text>
</Dialog.Button>
with the current implementation via label this is not possible.
Ask your Question
Does it make sense to extend
<Dialog.Button />to renderchildren? My use case is that I e.g. display a confirmation dialog. Once the user presses "Ok" I want to disable the button (already possible) and display a loading indicator:with the current implementation via
labelthis is not possible.