/
kaws
/
ui-kit-ce
Обзор
Документация
Войти
/
kaws
/
ui-kit-ce
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
packages/list/src/ListContext.ts
54 строки
1005 B
zavyalov.d.o
feat(mentions): добавлен новый компонент Mentions
16 июл 2025, 16:34
16 июл 2025, 16:34
94f44a3
Код
Авторство
О чём код?
'use client' import * as React from 'react' import { ListOwnProps } from './hooks' export type ListContextValue = Pick< ListOwnProps, 'size' | 'interactive' | 'stripe' > & { /** * */ selectedItemRef?: React.RefObject<HTMLElement> } export interface IHiddenPropsListItemContext { /** * * @inner */ classes?: { /** * Стиль, применяемый к item если у него есть description. * * @inner */ listItemDescription?: string /** * Стиль, применяемый к description. * * @inner */ description?: string } /** * Описание item. * * @inner */ description?: string /** * * @returns */ formatDescription?: (description: string) => React.ReactNode } export const ListContext: React.Context<ListContextValue> = React.createContext( {} ) export const HiddenPropsListItemContext: React.Context<IHiddenPropsListItemContext> = React.createContext({})