mirror of
https://github.com/hiaaryan/sileo.git
synced 2026-04-26 23:45:50 +03:00
[PR #28] [MERGED] feat: allow passing type to sileo.show() for dynamic toast state #30
Labels
No labels
bug
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/sileo#30
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hiaaryan/sileo/pull/28
Author: @stakeswky
Created: 2/21/2026
Status: ✅ Merged
Merged: 2/22/2026
Merged by: @hiaaryan
Base:
main← Head:fix/4-show-type-param📝 Commits (1)
d6de57bfeat: allow passingtypetosileo.show()for dynamic toast state (#4)📊 Changes
3 files changed (+3 additions, -1 deletions)
View changed files
📝
.gitignore(+1 -0)📝
src/toast.tsx(+1 -1)📝
src/types.ts(+1 -0)📄 Description
Summary
Fixes #4
Adds an optional
typeproperty toSileoOptions, allowingsileo.show()to render stateful toasts without requiring separate method calls.Changes
src/types.ts: Addedtype?: SileoStatetoSileoOptionssrc/toast.tsx:show()now passesopts.typeas the internalstateUsage
State-specific methods (
sileo.success(),sileo.error(), etc.) continue to work unchanged and take precedence overtype.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
[PR #28] [MERGED] feat: allow passingto [PR #28] feat: allow passingtypetosileo.show()for dynamic toast statetypetosileo.show()for dynamic toast state[PR #28] feat: allow passingto [PR #28] [MERGED] feat: allow passingtypetosileo.show()for dynamic toast statetypetosileo.show()for dynamic toast state