# post-carousel/4.0.7/src/blocks/smart-list/block.js

Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog &amp; News, version 4.0.7. 32 lines.

- Page: https://pluginprobe.com/plugins/post-carousel/4.0.7/code/src/blocks/smart-list/block.js
- Raw: https://pluginprobe.com/plugins/post-carousel/4.0.7/raw/src/blocks/smart-list/block.js
- Modified: 2026-04-24T11:48:54+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/post-carousel/4.0.7/code/src/blocks/smart-list/block.js#L10-L20`.

```javascript
import { registerBlockType } from "@wordpress/blocks";
import generateBlockCSS from "../shared/generateBlockCSS";
import { isBlockEnabled } from "../../utils";
import { SmartListBlockIcon } from "../smart-lists/icons";
import SmartListEdit from "./edit";
import SmartListSave from "./save";

const options = {
	apiVersion: 3,
	icon: SmartListBlockIcon,
	category: "sp-smart-post-show",
	name: "sp-smart-post-show/smart-list",
	title: "Smart List Item",
	keywords: ["list", "smart", "smart list", "smart-list"],
	parent: ["sp-smart-post-show/smart-lists"],
	description: "Create stylish, sortable list with powerful customization options.",
	supports: {
		align: ["wide", "full"],
	},
	edit: SmartListEdit,
	save: SmartListSave,
	generateCSS: (attributes) => generateBlockCSS(attributes, "sp-smart-post-show/smart-list", "frontend"),
};

const registerBlockTypeFn = () => {
	if (isBlockEnabled("smart-lists")) {
		registerBlockType(options.name, options);
	}
};

registerBlockTypeFn();

```
