AFFiNE icon indicating copy to clipboard operation
AFFiNE copied to clipboard

New toast design​

Open hwangdev97 opened this issue 2 years ago • 1 comments

Description

shot-2023-04-11-13 51 55@2x

Requirements for Toast component:

  • Supports three color modes/styles

  • Optional action button (undo)

  • Optional countdown timer for auto-dismissal

  • Optional close button: show or hidden

  • Optional icon support: show or hidden \ support different icons

  • Supports stacking of multiple messages, with display of 1, 2, 3, or more messages when hovered over

    • Supports basic expansion animation.

shot-2023-04-11-13 15 14


🖌️ figma link

🎬 basic animation

ps. The animation accuracy is not high, and the animation concept can be used as a reference for implementation. Further adjustments will be made later.

Use case

No response

Anything else?

No response

Are you willing to submit a PR?

  • [ ] Yes I'd like to help by submitting a PR!

hwangdev97 avatar Apr 11 '23 08:04 hwangdev97

Supports three color modes/styles

kob11angel avatar Apr 15 '23 18:04 kob11angel

We will implement this stable version in v0.6.

himself65 avatar Apr 16 '23 21:04 himself65