Files
actual/packages/component-library/src/Paragraph.tsx
Matt Fiddaman 0e1fc07bf3 ⬆️ @types/react (#7223)
* bump @types/react

* note
2026-03-17 08:17:48 +00:00

33 lines
552 B
TypeScript

import type { HTMLProps } from 'react';
import { css } from '@emotion/css';
import type { CSSProperties } from './styles';
type ParagraphProps = Omit<HTMLProps<HTMLDivElement>, 'style'> & {
style?: CSSProperties;
isLast?: boolean;
};
export function Paragraph({
style,
isLast,
children,
...props
}: ParagraphProps) {
return (
<div
{...props}
className={css([
!isLast && { marginBottom: 15 },
style,
{
lineHeight: '1.5em',
},
])}
>
{children}
</div>
);
}