·
61 commits
to main
since this release
Added
- [NEW] DownloadTrigger: Added Component for downloading a blob or file, whether retrieved synchronously or
asynchronously.
import { DownloadTrigger } from '@ark-ui/react/download-trigger'
export const DownloadImage = () => {
async function fetchImage() {
const response = await fetch('https://picsum.photos/200/300')
return response.blob()
}
return (
<DownloadTrigger data={fetchImage} fileName="avatar.jpeg" mimeType="image/jpeg">
Download Image
</DownloadTrigger>
)
}
Changed
- NumberInput: Set the default step to
0.01
whenformatOptions.style
was set topercent
. - [Breaking] Splitter: Redesigned splitter machine to support more use cases and improve DX. Check out the
Splitter documentation for more details.
Fixed
- Toast: Fixed issue where setting
offsets
toundefined
caused the machine to throw. - Select: Fixed issue where select
valueAsString
lost reactivity.