@oslokommune/punkt-elements
Version:
Komponentbiblioteket til Punkt, et designsystem laget av Oslo Origo
27 lines (26 loc) • 701 B
TypeScript
/**
* layout.ts
*
* Type definitions for layout and positioning.
* These represent common layout patterns used across components.
*/
/**
* Layout direction - vertical or horizontal orientation
*/
export type TLayout = 'vertical' | 'horizontal';
/**
* Generic positioning type for top/bottom placement
*/
export type TVerticalPosition = 'top' | 'bottom';
/**
* Generic positioning type for left/right placement
*/
export type THorizontalPosition = 'left' | 'right';
/**
* Generic positioning type for all four directions
*/
export type TPosition = 'top' | 'bottom' | 'left' | 'right';
/**
* Generic positioning including center
*/
export type TPositionWithCenter = TPosition | 'center';