@carbon/ibm-products
Version:
Carbon for IBM Products
31 lines (30 loc) • 894 B
TypeScript
/**
* Copyright IBM Corp. 2024, 2024
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import React, { PropsWithChildren } from 'react';
export interface DelimitedListProps extends PropsWithChildren {
/**
* Provide an optional class to be applied to the containing node.
*/
className?: string;
/**
* The character(s) used to separate the items.
*/
delimiter?: string;
/**
* Array of items to be listed.
*/
items?: any[];
/**
* Toggle the component's ability to truncate or not.
*/
truncate?: boolean;
}
/**
* `DelimitedList` converts an array of items into a single line of
* comma-separated values.
*/
export declare let DelimitedList: React.ForwardRefExoticComponent<DelimitedListProps & React.RefAttributes<HTMLDivElement>>;