UNPKG

@crossed/ui

Version:

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

26 lines (22 loc) 775 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 { withStaticProperties } from '@crossed/core'; import { ButtonText, ButtonTextProps } from './Text'; import { ButtonGroup, ButtonGroupProps } from './Group'; import { Box as ButtonElement } from '../../layout/Box'; import { ButtonIcon } from './Icon'; import { Button as Root } from './Button'; export * from './styles'; export * from './types'; export const Button = withStaticProperties(Root, { Group: ButtonGroup, Text: ButtonText, Element: ButtonElement, Icon: ButtonIcon, }); export { ButtonText, ButtonElement, ButtonGroup, ButtonIcon }; export type { ButtonTextProps, ButtonGroupProps };