Oihana Next UI - 0.1.47

Application logo

Layout Component

Display Modes

Flex Mode (default)

Item 1
Item 2
Item 3
Item 4

Grid Mode

Cell 1
Cell 2
Cell 3
Cell 4
Cell 5
Cell 6

Masonry Mode

Tile 1
Tile 4
Tile 2 (tall)
Tile 5
Tile 3
Tile 6 (taller)

None Mode (plain div)

Plain content 1
Plain content 2
Plain content 3

Flex Layouts

Horizontal with Wrap

1
2
3
4
5

Vertical Column

Top
Middle
Bottom

Centered Content

A
B
C

Space Between

Start
Middle
End

Grid Layouts

2 Columns Grid

1
2
3
4

4 Columns Grid

1
2
3
4
5
6
7
8

3×2 Grid (Rows × Cols)

1
2
3
4
5
6

Centered Grid Items

A
B
C
D

Masonry Layouts

3 Columns — variable heights

Short
Medium
Medium
Tall
Short
Short
Short
Very tall
Tall

Responsive (1 → 2 → 3 → 4 columns)

Redimensionner la fenêtre pour voir les colonnes s'ajuster

Item 1
Item 2 (tall)
Item 3
Item 4
Item 5 (very tall)
Item 6
Item 7
Item 8

columnClassName — style par colonne

A
B (tall)
C
D
E
F

Comparaison Masonry vs Grid — mêmes items, hauteurs variables

display="grid" — hauteurs uniformisées

Short
Tall
Medium
Short

display="masonry" — hauteurs naturelles

Short
Medium
Tall
Short

Responsive Layouts

Responsive Grid (1 → 2 → 3 → 4 columns)

Try resizing your browser: 1 col on mobile, 2 on tablet, 3 on desktop, 4 on xl screens

01
02
03
04
05
06
07
08

Responsive Flex (Column → Row)

Column on mobile, row on desktop

Header
Content
Footer

Responsive Gap & Padding

Small spacing on mobile, larger on desktop

1
2
3
4
5
6

Advanced Examples

Dashboard Layout

Header
Sidebar
Main Content
Footer

Card Grid with Custom Styling

Card 1

Content here

Card 2

Content here

Card 3

Content here

Auto-fit Grid (Responsive without breakpoints)

Using autoCols for automatic responsive layout

Auto 1
Auto 2
(taller)
Auto 3
Auto 4
Auto 5

DisplayDropDown Examples

Modes

modes={["flex","masonry","grid"]} (défaut)

flex

modes={["flex","masonry"]}

masonry

modes={["flex","grid"]}

flex

modes={["flex"]} → null

rien rendu

Direction

Chaque cellule réserve l'espace dans la direction d'ouverture.

bottom (défaut)

top

left

right

Placement

Le panel s'ancre relativement au bouton.

start

center

end (défaut)

Combinaisons

top + end

top + start

top + center

bottom + start

right + end

left + start

Icons

La prop icons accepte un override partiel ou total — les clés absentes gardent l'icône par défaut.

défaut (CiGrid31 / RiLayoutMasonryFill / IoMdGrid)

flex

icons={ { flex: BsList , masonry: BsColumns , grid: BsGrid } }

flex

icons={ { flex: TbLayoutList , masonry: TbLayoutMasonry , grid: TbLayoutGrid } }

flex

icons={ { flex: BsList } } — masonry + grid restent par défaut

flex

autoPosition

Même prop autoPosition sur tous les boutons. Le hook calcule direction + placement d'après la position réelle dans le viewport au moment du clic.

haut-gauche

haut-centre

haut-droite

bas-gauche

bas-centre

bas-droite

Les panels haut ouvrent vers le bas, les panels bas ouvrent vers le haut. Les panels gauche/droite s'adaptent selon l'espace horizontal.

Live preview

flex

Abrasif STF D125 P120

Festool — Libre service

Abrasif STF D150 P80

Festool — Libre service

Adhésif Delta Inside

Festool — Libre service

Adaptateur AD-3/8 FF

Festool — Libre service

Abrasif Wing Grain 120

Festool — Libre service

Adheflex 295 Dispenser

Festool — Libre service

En mode masonry les hauteurs naturelles sont préservées — remarque les items 2 et 5 plus hauts