芝麻web文件管理V1.00
编辑当前文件:/home/freeclou/app.optimyar.com/backend/node_modules/react-select/src/components/Placeholder.js
// @flow /** @jsx jsx */ import { type Node } from 'react'; import { jsx } from '@emotion/react'; import type { CommonProps } from '../types'; export type PlaceholderProps = CommonProps & { /** The children to be rendered. */ children: Node, /** props passed to the wrapping element for the group. */ innerProps: { [string]: any }, }; export const placeholderCSS = ({ theme: { spacing, colors }, }: PlaceholderProps) => ({ label: 'placeholder', color: colors.neutral50, marginLeft: spacing.baseUnit / 2, marginRight: spacing.baseUnit / 2, position: 'absolute', top: '50%', transform: 'translateY(-50%)', }); const Placeholder = (props: PlaceholderProps) => { const { children, className, cx, getStyles, innerProps } = props; return (
{children}
); }; export default Placeholder;