github chakra-ui/ark @ark-ui/vue@3.2.0

latest releases: @ark-ui/svelte@5.10.0, @ark-ui/vue@5.25.0, @ark-ui/solid@5.25.0...
15 months ago

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>

Don't miss a new ark release

NewReleases is sending notifications on new releases.