import * as React from 'react' import classNames from 'classnames' import { FiCheck } from 'react-icons/fi' import { Text, types } from 'react-bricks/rsc' import { highlightBgColors } from '../../colors' import blockNames from '../../blockNames' import { bulletColorsEditProps } from '../../LayoutSideProps' export interface BulletListItemProps { bulletColor: { color: string; className: string } className: string attributes: string text: types.TextValue } const BulletListItem: types.Brick = ({ bulletColor = highlightBgColors.SKY.value, className, text, }) => { return (
( {props.children} )} placeholder="Type..." />
) } BulletListItem.schema = { name: blockNames.BulletListItem, label: 'List item', category: 'shared', hideFromAddMenu: true, playgroundLinkLabel: 'View source code on Github', playgroundLinkUrl: 'https://github.com/ReactBricks/reactbricks-starters/blob/main/packages/reactbricks-ui/nextjs-app/src/shared/bricks/BulletListItem.tsx', getDefaultProps: () => ({ bulletColor: highlightBgColors.SKY.value, text: 'New item', }), sideEditProps: [bulletColorsEditProps], } export default BulletListItem