@dnb/eufemia
Version:
DNB Eufemia Design System UI Library
25 lines (24 loc) • 859 B
TypeScript
/**
* HTML Element
*
*/
import React from 'react';
import { ElementProps } from '../Element';
import type { SpacingProps } from '../../shared/types';
export type DlProps = {
/**
* Use "true" to horizontally align both the term and the description
*/
layout?: 'vertical' | 'horizontal' | 'grid';
/**
* @deprecated Use layout instead
*/
direction?: 'vertical' | 'horizontal';
};
export type DlAllProps = DlProps & React.AllHTMLAttributes<HTMLDListElement> & Omit<ElementProps, 'skeleton' | 'skeletonMethod'>;
declare const Dl: {
({ direction, layout, ...props }: DlAllProps): import("react/jsx-runtime").JSX.Element;
Item({ className, children, ...props }: React.AllHTMLAttributes<HTMLSpanElement> & SpacingProps): import("react/jsx-runtime").JSX.Element;
_supportsSpacingProps: boolean;
};
export default Dl;