list.tsx

src/components/list.tsx
import { clsx } from 'clsx'
import { Icon } from '@/components/icon'
import {
type DOMNode,
Element,
type HTMLReactParserOptions,
domToReact,
} from 'html-react-parser'
import { isTag } from '@/utils/parse-blocks-helpers'
export interface ListProps extends React.ComponentPropsWithoutRef<'ul'> {
/** Variant of the list - controls default styling */
variant?: 'default' | 'bulleted' | 'numbered' | 'unstyled'
/** Custom spacing between list items */
spacing?: 'tight' | 'normal' | 'loose'
/** Gap override - provide full Tailwind classes like 'gap-4' or 'gap-x-8 gap-y-4' */
gap?: string
/** Font size override */
fontSize?: string
/** Text color override */

Showing the first 20 lines.

Get full code

Support

Talk to the developers of this project to learn more

We have been building professional websites for big clients for over 15 years. Gallop templates and blocks is our best foundation for SEO websites and web apps.

© 2026 Web Plant Media, LLC