Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import React, { FC, ReactElement } from 'react';
import styled from 'styled-components';
import { MarginProps, system, Prop } from '@modulz/radix-system';
import themeGet from '@styled-system/theme-get';
import css from '@styled-system/css';
import * as CSS from 'csstype';
import { transparentize } from 'polished';
import { Box } from './Box';
const pillWidth = system({
pillWidth: {
property: 'width',
},
});
interface PillWidthProps {
pillWidth?: Prop>;
}
export type PillNavProps = MarginProps &
PillWidthProps & {
children: ReactElement[];
};
export const PillNav: FC = ({ children, pillWidth, ...props }) => {
return (