UNPKG

@teamsparta/stack-chip

Version:
37 lines (34 loc) 895 B
import * as react_jsx_runtime from 'react/jsx-runtime'; import * as react from 'react'; import { Responsive } from '@teamsparta/stack-core'; import { ChipSize } from './type.js'; interface ChipGroupContext { /** * 선택된 값 */ value: string | string[]; /** * 다중 선택 가능 여부 */ multiple: boolean; /** * 비활성화 여부 */ disabled: boolean; /** * 버튼 클릭 시 값을 토글하는 함수 */ toggleValue: (value: string) => void; /** * 사이즈 */ size?: Responsive<ChipSize>; } declare const ChipGroupProvider: { (props: ChipGroupContext & { children: react.ReactNode; }): react_jsx_runtime.JSX.Element; displayName: string; }; declare const useChipGroupContext: (consumerName: string) => ChipGroupContext; export { ChipGroupProvider, useChipGroupContext };