UNPKG

@mantine/core

Version:

React components library focused on usability, accessibility and developer experience

1 lines 598 B
{"version":3,"file":"List.context.cjs","names":["createSafeContext"],"sources":["../../../src/components/List/List.context.ts"],"sourcesContent":["import { createSafeContext, GetStylesApi } from '../../core';\nimport type { ListFactory } from './List';\n\nexport interface ListContextValue {\n getStyles: GetStylesApi<ListFactory>;\n center: boolean | undefined;\n icon: React.ReactNode | undefined;\n}\n\nexport const [ListProvider, useListContext] = createSafeContext<ListContextValue>(\n 'List component was not found in tree'\n);\n"],"mappings":";;AASA,MAAa,CAAC,cAAc,0FAAkBA,kBAC5C,uCACD"}