Skip to content

Releases: chakra-ui/ark

@ark-ui/anatomy@3.3.1

12 Jun 17:46
Compare
Choose a tag to compare

Fixed

  • Added missing Checkbox.Group part̊.

@ark-ui/anatomy@3.3.0

11 Jun 21:46
Compare
Choose a tag to compare

Added

  • Adeed QRCode anatomy.

@ark-ui/vue@3.3.1

07 Jun 16:55
Compare
Choose a tag to compare

Fixed

  • Combobox: Exported missing ComboboxList component.

@ark-ui/solid@3.2.2

07 Jun 16:55
Compare
Choose a tag to compare

Fixed

  • Combobox: Exported missing ComboboxList component.

@ark-ui/react@3.2.1

07 Jun 16:56
Compare
Choose a tag to compare

Fixed

  • Combobox: Exported missing ComboboxList component.

@ark-ui/vue@3.3.0

06 Jun 05:31
Compare
Choose a tag to compare

Added

  • All Components: Introduced the Provider component for easier access to internal machine
    APIs, improving component composition. See the example below:
<script setup lang="ts">
import { Avatar, useAvatar } from '@ark-ui/vue'

const avatar = useAvatar({
  onStatusChange: (e) => console.log('status changed', e),
})
</script>

<template>
  <Avatar.RootProvider :value="avatar">
    <Avatar.Fallback>PA</Avatar.Fallback>
    <Avatar.Image src="https://i.pravatar.cc/3000" alt="avatar" />
  </Avatar.RootProvider>
</template>

@ark-ui/solid@3.2.1

06 Jun 07:17
Compare
Choose a tag to compare

Fixed

  • Resolved an issue where the component context could be undefined in some components.

@ark-ui/solid@3.2.0

06 Jun 05:32
Compare
Choose a tag to compare

Added

  • All Components: Introduced the Provider component for easier access to internal machine
    APIs, improving component composition. See the example below:
import { Avatar, useAvatar } from '@ark-ui/solid'

export const Example = () => {
  const avatar = useAvatar({
    onStatusChange: (e) => console.log('status changed', e),
  })

  return (
    <Avatar.RootProvider value={avatar}>
      <Avatar.Fallback>PA</Avatar.Fallback>
      <Avatar.Image src="https://i.pravatar.cc/300" alt="avatar" />
    </Avatar.RootProvider>
  )
}

@ark-ui/react@3.2.0

06 Jun 05:33
Compare
Choose a tag to compare

Added

  • All Components: Introduced the Provider component for easier access to internal machine
    APIs, improving component composition. See the example below:
import { Avatar, useAvatar } from '@ark-ui/react'

export const Provider = () => {
  const avatar = useAvatar({
    onStatusChange: (e) => console.log('status changed', e),
  })

  return (
    <Avatar.RootProvider value={avatar}>
      <Avatar.Fallback>PA</Avatar.Fallback>
      <Avatar.Image src="https://i.pravatar.cc/300" alt="avatar" />
    </Avatar.RootProvider>
  )
}

@ark-ui/vue@3.2.0

04 Jun 20:02
Compare
Choose a tag to compare

Added

  • Select, Combobox: Added support for generics.

You can now use generics with Select and Combobox components to ensure type safety and improved development experience.

<script setup lang="ts">
import { Combobox } from '@ark-ui/vue'
import { ref } from 'vue'

interface Pokemon {
  id: string
  name: string
  url: string
}

const items = ref<Pokemon[]>([])
</script>

<template>
  <Combobox.Root 
    :items="items" 
    :item-to-value="(item) => item.id"  
    @highlight-change="e => console.log(e.highlightedItem?.name)"
  />
</template>