@radix-ui/themes
Version:
[](https://radix-ui.com/themes)
22 lines (21 loc) • 1.65 kB
TypeScript
import * as React from 'react';
import { dataListRootPropDefs, dataListItemPropDefs, dataListLabelPropDefs } from './data-list.props.js';
import type { ComponentPropsWithout, RemovedProps } from '../helpers/index.js';
import type { GetPropDefTypes, MarginProps } from '../props/index.js';
type DataListRootOwnProps = GetPropDefTypes<typeof dataListRootPropDefs>;
interface DataListRootProps extends ComponentPropsWithout<'dl', RemovedProps>, MarginProps, DataListRootOwnProps {
}
declare const DataListRoot: React.ForwardRefExoticComponent<DataListRootProps & React.RefAttributes<HTMLDListElement>>;
type DataListItemOwnProps = GetPropDefTypes<typeof dataListItemPropDefs>;
interface DataListItemProps extends ComponentPropsWithout<'div', RemovedProps>, DataListItemOwnProps {
}
declare const DataListItem: React.ForwardRefExoticComponent<DataListItemProps & React.RefAttributes<HTMLDivElement>>;
type DataListLabelOwnProps = GetPropDefTypes<typeof dataListLabelPropDefs>;
interface DataListLabelProps extends ComponentPropsWithout<'dt', RemovedProps>, DataListLabelOwnProps {
}
declare const DataListLabel: React.ForwardRefExoticComponent<DataListLabelProps & React.RefAttributes<HTMLElement>>;
interface DataListValueProps extends ComponentPropsWithout<'dd', RemovedProps> {
}
declare const DataListValue: React.ForwardRefExoticComponent<DataListValueProps & React.RefAttributes<HTMLElement>>;
export { DataListRoot as Root, DataListItem as Item, DataListLabel as Label, DataListValue as Value, };
export type { DataListRootProps as RootProps, DataListItemProps as ItemProps, DataListLabelProps as LabelProps, DataListValueProps as ValueProps, };