UNPKG

@crossed/ui

Version:

A universal & performant styling library for React Native, Next.js & React

29 lines (24 loc) 598 B
/** * Copyright (c) Paymium. * * This source code is licensed under the MIT license found in the * LICENSE file in the root of this projects source tree. */ import { createContext } from 'react'; import { ModalProps } from './Root'; export type VariantSize = { /** * Size of modal */ size: 'sm' | 'md' | 'lg'; }; export type LocalContext = VariantSize & { showSheet?: boolean; stickyHeader?: boolean; stickyFooter?: boolean; idRef: string; closable: ModalProps['closable']; }; export const localContext = createContext<LocalContext>({ size: 'md', } as LocalContext);