UNPKG

tharikida-ui

Version:

A modern, lightweight React UI component library with built-in theming, accessibility, and full TypeScript support. Create beautiful, responsive, and customizable web apps faster with ready-to-use components for any project.

51 lines (50 loc) 2.5 kB
/** * `List` is a container for list items, typically used with ListTile components, supporting theming and custom styles. * * @param {object} props - The properties to customize the `List` component. * @param {React.ReactNode} props.children - List items as ListTile components or any ReactNode. * @param {React.CSSProperties} [props.styles] - Custom styles for the list container. * @param {string} [props.className] - Additional className for the list. * @param {number} [props.cornerRadius] - Border radius for the list. Overrides theme.cornerRadius if provided. * @param {string} [props.backgroundColor] - Background color for the list. * @param {string} [props.borderColor] - Border color for the list. * @param {string} [props.borderWidth] - Border width for the list. * @param {string} [props.borderStyle] - Border style for the list. * @param {string} [props.fontFamily] - Font family for the list. * @param {number} [props.fontSize] - Font size for the list. * @param {string} [props.fontWeight] - Font weight for the list. * @param {string} [props.transitionDuration] - Transition duration for the list. * @param {number} [props.spacingfactor] - Spacing factor for the list. * * @returns {JSX.Element} A styled list container. */ export interface ListProps { /** List items as ListTile components or any ReactNode */ children: React.ReactNode; /** Custom styles for the list container */ styles?: React.CSSProperties; /** Additional className for the list */ className?: string; /** Border radius for the list. Overrides theme.cornerRadius if provided. */ cornerRadius?: number; /** Background color for the list. */ backgroundColor?: string; /** Border color for the list. */ borderColor?: string; /** Border width for the list. */ borderWidth?: string; /** Border style for the list. */ borderStyle?: string; /** Font family for the list. */ fontFamily?: string; /** Font size for the list. */ fontSize?: number; /** Font weight for the list. */ fontWeight?: string; /** Transition duration for the list. */ transitionDuration?: string; /** Spacing factor for the list. */ spacingfactor?: number; } declare const List: ({ children, styles, className, cornerRadius, backgroundColor, borderColor, borderWidth, borderStyle, fontFamily, fontSize, fontWeight, transitionDuration, spacingfactor, }: ListProps) => import("react/jsx-runtime").JSX.Element; export default List;