UNPKG

@gechiui/components

Version:
16 lines (12 loc) 345 B
/** * GeChiUI dependencies */ import { createContext, useContext } from '@gechiui/element'; /** * Internal dependencies */ import type { ItemGroupContext as Context } from './types'; export const ItemGroupContext = createContext( { size: 'medium', } as Context ); export const useItemGroupContext = () => useContext( ItemGroupContext );