UNPKG

@atlaskit/navigation-system

Version:

The latest navigation system for Atlassian apps.

31 lines (30 loc) • 860 B
/** * Props from primitives that we explicitly ignore and remove from spread props, * because they apply styles. * * `css` / `className` are not here because primitives don't support them. * * See `packages/design-system/primitives/src/components/anchor.tsx` and `packages/design-system/primitives/src/components/pressable.tsx` * for where these are defined. These shouldn't change very often as the direction is `xcss` over individual props. */ /** * Returns the spread props to pass through to underlying primitive components. * * It removes the props which apply styles. */ // eslint-disable no-unused-vars export function getPrimitiveSpreadProps({ style, xcss, backgroundColor, padding, paddingBlock, paddingBlockStart, paddingBlockEnd, paddingInline, paddingInlineStart, paddingInlineEnd, ...props }) { return props; }