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

Function LI

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

Source from the content-addressed store, hash-verified

215}
216
217export function LI({isLongForm, ...props}: HTMLAttributes<HTMLLIElement> & {isLongForm?: boolean}) {
218 return (
219 <li
220 {...props}
221 className={style({
222 font: 'body-lg',
223 fontFamily: {
224 default: 'sans',
225 isLongForm: 'serif'
226 },
227 textWrap: 'pretty',
228 marginY: {
229 default: 0,
230 isLongForm: 8
231 },
232 maxWidth: '--text-width',
233 marginX: 'auto'
234 })({isLongForm})}
235 />
236 );
237}
238
239interface SubpageHeaderProps {
240 currentPage: Page;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected