@ariakit/react-core
Version:
Ariakit React core
26 lines (23 loc) • 604 B
JavaScript
"use client";
import {
useCompositeStoreProps
} from "./B7UTNDHN.js";
import {
useStore,
useStoreProps
} from "./RTNCFSKZ.js";
// src/radio/radio-store.ts
import * as Core from "@ariakit/core/radio/radio-store";
function useRadioStoreProps(store, update, props) {
store = useCompositeStoreProps(store, update, props);
useStoreProps(store, props, "value", "setValue");
return store;
}
function useRadioStore(props = {}) {
const [store, update] = useStore(Core.createRadioStore, props);
return useRadioStoreProps(store, update, props);
}
export {
useRadioStoreProps,
useRadioStore
};