MCPcopy Create free account
hub / github.com/adobe/react-spectrum / P

Function P

packages/dev/s2-docs/src/typography.tsx:195–215  ·  view source on GitHub ↗
({
  isLongForm,
  ...props
}: HTMLAttributes<HTMLParagraphElement> & {isLongForm?: boolean})

Source from the content-addressed store, hash-verified

193}
194
195export function P({
196 isLongForm,
197 ...props
198}: HTMLAttributes<HTMLParagraphElement> & {isLongForm?: boolean}) {
199 return (
200 <p
201 {...props}
202 className={style({
203 font: 'body-lg',
204 fontFamily: {
205 default: 'sans',
206 isLongForm: 'serif'
207 },
208 textWrap: 'pretty',
209 marginY: '[1lh]',
210 maxWidth: '--text-width',
211 marginX: 'auto'
212 })({isLongForm})}
213 />
214 );
215}
216
217export function LI({isLongForm, ...props}: HTMLAttributes<HTMLLIElement> & {isLongForm?: boolean}) {
218 return (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected