# Em (/components/typography/em)



`Em` stresses a word or phrase, changing how the sentence reads. It renders a native `em` element,
which conveys emphasis to assistive technology, and applies italic styling.

apps/docs/src/examples/em/basic.tsx

```tsx
import { Em } from '@luke-ui/react/em';
import { Text } from '@luke-ui/react/text';

export default () => {
	return (
		<Text>
			We <Em>had</Em> to do something about it.
		</Text>
	);
};
```

`Em` stays inline and inherits the surrounding typography. Use `textWrap` to control wrapping. Use
`lineClamp` to constrain longer text.

Use `<Text elementType="i">` when text only needs to look italic. `Em` tells assistive technology
the text is stressed.

## API [#api]

<ComponentPropsTable
  id="type-table-em.tsx-EmProps"
  type="{
  &#x22;id&#x22;: &#x22;em.tsx-EmProps&#x22;,
  &#x22;name&#x22;: &#x22;EmProps&#x22;,
  &#x22;description&#x22;: &#x22;Props for the `Em` component.&#x22;,
  &#x22;entries&#x22;: [
    {
      &#x22;name&#x22;: &#x22;lineClamp&#x22;,
      &#x22;description&#x22;: &#x22;Clamps text lines. `true` clamps to 1 line; numeric values clamp to 1–5.&#x22;,
      &#x22;tags&#x22;: [],
      &#x22;type&#x22;: &#x22;boolean | 2 | 1 | 3 | 4 | 5 | undefined&#x22;,
      &#x22;simplifiedType&#x22;: &#x22;union&#x22;,
      &#x22;required&#x22;: false,
      &#x22;deprecated&#x22;: false
    },
    {
      &#x22;name&#x22;: &#x22;textWrap&#x22;,
      &#x22;description&#x22;: &#x22;Sets text wrapping behavior.&#x22;,
      &#x22;tags&#x22;: [
        {
          &#x22;name&#x22;: &#x22;default&#x22;,
          &#x22;text&#x22;: &#x22;'default'&#x22;
        }
      ],
      &#x22;type&#x22;: &#x22;\&#x22;balance\&#x22; | \&#x22;default\&#x22; | \&#x22;pretty\&#x22; | undefined&#x22;,
      &#x22;simplifiedType&#x22;: &#x22;union&#x22;,
      &#x22;required&#x22;: false,
      &#x22;deprecated&#x22;: false
    },
    {
      &#x22;deprecated&#x22;: false,
      &#x22;description&#x22;: &#x22;`EmProps` also accepts compatible DOM and ARIA attributes and event handlers for its rendered element.&#x22;,
      &#x22;name&#x22;: &#x22;__nativePropsForwarding&#x22;,
      &#x22;required&#x22;: true,
      &#x22;simplifiedType&#x22;: &#x22;&#x22;,
      &#x22;tags&#x22;: [],
      &#x22;type&#x22;: &#x22;&#x22;
    }
  ]
}"
/>
