Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

formatted.tsx 355B

123456789101112
  1. import type { ComponentProps, FC } from 'react'
  2. import classNames from '@/utils/classnames'
  3. export type FormattedTextProps = ComponentProps<'p'>
  4. export const FormattedText: FC<FormattedTextProps> = (props) => {
  5. const { className, ...rest } = props
  6. return <p
  7. {...rest}
  8. className={classNames('leading-7', className)}
  9. >{props.children}</p>
  10. }