xref: /expo/docs/components/plugins/Highlight.tsx (revision 234e070f)
1import { css } from '@emotion/react';
2import { theme } from '@expo/styleguide';
3import type { PropsWithChildren } from 'react';
4
5const STYLES_HIGHLIGHT = css`
6  text-shadow: ${theme.palette.yellow7} 0px 0px 10px, ${theme.palette.yellow7} 0px 0px 10px,
7    ${theme.palette.yellow7} 0px 0px 10px, ${theme.palette.yellow7} 0px 0px 10px;
8`;
9
10const Highlight = ({ children }: PropsWithChildren) => (
11  <span css={STYLES_HIGHLIGHT}>{children}</span>
12);
13
14export default Highlight;
15