Added
- Added render function to the
NumberInput
component - Added
FileUpload
component
Changed
- Revised the
ColorPicker
component. Check out the documentation for more information.
Fixed
- Resolved a problem where the
Dialog.CloseTrigger
was assigned to the wrongdata-part
. - Fixed various issues for the
Toast
component that were caused by the API not being wrapped in anAccessor
.
// before
const [Toaster, toast] = createToaster({
placement: 'top-end',
render(toast) {
return (
<Toast.Root>
<Toast.Title>{toast.title}</Toast.Title>
<Toast.Description>{toast.description}</Toast.Description>
<Toast.CloseTrigger>Close</Toast.CloseTrigger>
</Toast.Root>
)
},
})
// after
const [Toaster, toast] = createToaster({
placement: 'top-end',
render(toast) {
return (
<Toast.Root>
<Toast.Title>{toast().title}</Toast.Title>
<Toast.Description>{toast().description}</Toast.Description>
<Toast.CloseTrigger>Close</Toast.CloseTrigger>
</Toast.Root>
)
},
})