Skip to content

@ark-ui/solid@5.2.0

Compare
Choose a tag to compare
@cschroeter cschroeter released this 22 Mar 19:21
· 168 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/solid/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 when formatOptions.style was set to percent.
  • [Breaking] Splitter: Redesigned splitter machine to support more use cases and improve DX. Check out the
    Splitter documentation for more details.

Fixed

  • Presence: Fixed issue where onExitComplete was not being called.
  • Select: Fixed issue where select valueAsString lost reactivity.
  • Toast:
    • Fixed issue where setting offsets to undefined caused the machine to throw.
    • Fixed issue where onExitComplete was not being called.