@chayns-components/emoji-input
Version:
Input field that supports HTML elements and emojis
34 lines (32 loc) • 920 B
JavaScript
import styled, { css } from 'styled-components';
export const StyledEmojiPickerEmojis = styled.div`
display: ${({
$shouldShowNoContentInfo
}) => $shouldShowNoContentInfo ? 'flex' : 'grid'};
flex: 1 1 auto;
grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
grid-template-rows: min-content;
overflow-y: ${({
$shouldPreventScroll
}) => $shouldPreventScroll ? 'hidden' : 'scroll'};
padding: 5px 0 5px 5px;
position: relative;
width: 100%;
${({
$shouldShowNoContentInfo
}) => $shouldShowNoContentInfo && css`
align-items: center;
`}
${({
$shouldPreventScroll
}) => $shouldPreventScroll && css`
padding-right: 5px;
`}
`;
export const StyledEmojiPickerEmojisNoContentInfo = styled.div`
font-size: 85%;
opacity: 0.85;
padding: 0 12.5%;
text-align: center;
`;
//# sourceMappingURL=EmojiPickerEmojis.styles.js.map