UNPKG

@madeja-studio/telar

Version:

UI component library by Madeja Studio

23 lines (22 loc) 623 B
"use strict"; import { View } from 'react-native'; import tw from "../../tailwind/index.js"; import { useTheme } from "../../theme/ThemeContextProvider.js"; import { jsx as _jsx } from "react/jsx-runtime"; export const Separator = ({ orientation = 'horizontal', style, tint, ...props }) => { const { theme } = useTheme(); return /*#__PURE__*/_jsx(View, { style: [orientation === 'horizontal' ? tw`w-full h-[1px]` : tw`h-full w-[1px]`, { backgroundColor: tint ?? theme.separator.color }, theme.separator.default.style.root, style], ...props }); }; //# sourceMappingURL=Separator.js.map