Skip to content

Fragments

Import

You import them like so:

import {
DrawerList,
ScrollView,
TextCounter,
} from '@dnb/eufemia/fragments'

Description

Fragments are small, low-level and reusable parts used inside other components.

You may use them only to build new components from.

Available Fragments

DrawerList

Use DrawerList as an internal list pattern inside drawer-based components.

ScrollView

Use ScrollView when content needs its own horizontal or vertical scrolling area.

TextCounter

Use TextCounter to show how many characters someone has typed or can still type.

Edit on GitHub