Tropix126 / fluent-svelte

A faithful implementation of Microsoft's Fluent Design System in Svelte.
https://fluent-svelte.vercel.app
MIT License
606 stars 26 forks source link

Pass the current TextBox value as a slot variable for buttons #39

Closed TheOnlyTails closed 2 years ago

TheOnlyTails commented 2 years ago

Before you start...

Description

When you want to add custom buttons to a <TextBox> via the buttons slot, you don't have access to the current value of the text box, which makes things like a reset button unreasonably difficult.

Alternative solutions

Maybe we should have a new default prop which enable a reset button?

Relevant Assets

No response

TheOnlyTails commented 2 years ago

I kinda like the alternative solution