feishin/src/renderer/features/lyrics/lyric-line.tsx

25 lines
565 B
TypeScript
Raw Normal View History

2023-05-22 17:38:31 -07:00
import { ComponentPropsWithoutRef } from 'react';
import { TextTitle } from '/@/renderer/components/text-title';
import styled from 'styled-components';
2023-05-22 17:38:31 -07:00
interface LyricLineProps extends ComponentPropsWithoutRef<'div'> {
text: string;
2023-05-22 17:38:31 -07:00
}
const StyledText = styled(TextTitle)`
font-size: 2rem;
font-weight: 100;
line-height: 3.5rem;
&.active,
&.credit {
font-size: 2.5rem;
font-weight: 800;
line-height: 4rem;
}
`;
export const LyricLine = ({ text, ...props }: LyricLineProps) => {
return <StyledText {...props}>{text}</StyledText>;
2023-05-22 17:38:31 -07:00
};