• Start

  • Blogg

  • Kom igång

  • Riktlinjer

  • Komponenter

  • Changelog

  • Tillgänglighet

  • Statistik

  • Inställningar

Komponenter

Komponenter

​
​

Inga resultat hittade, prova med andra sökvillkor.

Popper

Popper

3.3.4

A popper is a transient view that appears above other content onscreen when people click or tap a control or interactive area. Use poppers to enable simple tasks on tablet and desktop.

Demo
Props
Installation
Länkar
Best practices
Tillgänglighet
Change log
Statistik

Demo

Props

Se fullständing dokumentation(öppnas i ny flik)
NamnTypBeskrivning

children

ReactNodePopper render function or node.

disablePadding

booleanIf true, padding is removed.

disableTransition

booleanIf true, the popper will toggle without any animation effects

flip

booleanThe flip modifier can change the placement of a popper when it's scheduled to overflow a given boundary.

offset

number[]The offset modifier lets you displace a popper element from its reference element.

onClose *

() => voidFunction that handles closing the popper. Usually a function that sets open = false.

showArrow

boolean

sx

SxPropsThe system prop that allows defining system overrides as well as additional CSS styles.

transformOrigin

stringProperty sets the origin for an element's transformations.

Installation

Kodexempel
npm install @sj-ab/component-library.ui.popper

Länkar

  • Storybook

  • Figma

  • Bit.cloud

Best practices

Examples

Example 1: Text Field with Popper (no arrow)

Example 1: Text Field with Popper (no arrow)

Example 2: Chip with Popper (with arrow pointing to its parent)

Example 2: Chip with Popper (with arrow pointing to its parent)

Tillgänglighet

Popper har i nuläget inget inbyggt stöd för att begränsa fokus för tangentbord och skärmläsare! Alla popuper med interaktivitet (t.ex. DatePicker eller Menu) måste alltid använda komponenten Popover från Mui istället för Popper.

Change log

  • Remove Popper default offset

    3.3.1
  • Upgrade to React 19

    3.3.0

Statistik

  • Importer av Popper

    7
  • Repos med Popper

    15%
  • Senaste installerade version av Popper

    3.3.4
  • Äldsta installerade version av Popper

    3.3.4