We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Maybe I'm just not seeing it, but I believe popups/modals trigger need a disabled: boolean prop at the component or snippet level.
trigger
disabled: boolean
Being that the new modals and popovers are most comfortable to implement with {#snippet trigger()}, we need a convenient way to disable onclick.
{#snippet trigger()}
<script lang="ts"> import { Modal } from '@skeletonlabs/skeleton-svelte' let open= $state(false) let triggerDisabled = $state(true) </script> <Modal bind:open {triggerDisabled} > {#snippet trigger()} <span> Click me! </span> {/snippet} {#snippet content()} <!-- Content --> {/snippet} </Modal>
<script lang="ts"> import { Modal } from '@skeletonlabs/skeleton-svelte' let open= $state(false) let triggerDisabled = $state(true) </script> <Modal bind:open > {#snippet trigger({disabled: triggerDisabled)} <span> Click me! </span> {/snippet} {#snippet content()} <!-- Content --> {/snippet} </Modal>
Enhancement
No response
The text was updated successfully, but these errors were encountered:
@endigo9740 I'm into this as well. Unsure how the React side looks with all the Floating UI stuff but I can craft this up for Svelte at least.
Sorry, something went wrong.
@phamduylong assigning now.
Per the request:
disabled
phamduylong
No branches or pull requests
Maybe I'm just not seeing it, but I believe popups/modals
trigger
need adisabled: boolean
prop at the component or snippet level.Being that the new modals and popovers are most comfortable to implement with
{#snippet trigger()}
, we need a convenient way to disable onclick.Proposal A
Proposal B
What type of pull request would this be?
Enhancement
Provide relevant links or additional information.
No response
The text was updated successfully, but these errors were encountered: