> ## Documentation Index
> Fetch the complete documentation index at: https://doc.lucidworks.com/llms.txt
> Use this file to discover all available pages before exploring further.

# layout:block

export const LwTemplate = ({title = "Key questions to get you started", icon = "sparkles", cta = "Powered by Agent Studio", linkHref = "https://lucidworks.com/demo/?utm_source=docs&utm_medium=referral&utm_campaign=docs_cta_ai"}) => {
  const [isLoaded, setIsLoaded] = useState(false);
  useEffect(() => {
    const timer = setTimeout(() => {
      setIsLoaded(true);
    }, 500);
    return () => clearTimeout(timer);
  }, []);
  return <div className="lw-template-container">
      <Card title={title} icon={icon}>
        {isLoaded && <span dangerouslySetInnerHTML={{
    __html: `<lw-template id="a029c1a9-28be-427e-b0e1-5d918920246a"></lw-template
            >`
  }} />}
        <Link href={linkHref} className="agent-studio-link text-left text-gray-600 gap-2 dark:text-gray-400 text-sm font-medium flex flex-row items-center hover:text-primary dark:hover:text-primary-light group-hover:text-primary group-hover:dark:text-primary-light">Powered by Lucidworks Agent Studio</Link>
      </Card>
    </div>;
};

[localhost link]: http://localhost:3000/docs/4/app-studio/reference/tags/lightning.directive.layoutBlock

[mintlify link]: https://doc.lucidworks.com/docs/4/app-studio/reference/tags/lightning.directive.layoutBlock

[old doc.lw link]: https://doc.lucidworks.com/app-studio/4.2/1135

<LwTemplate />

## Description

Adds grid block classes to element

## Usage

as element:

```xml wrap  theme={"dark"}
<layout:block
       [xs="{size}"]
       [sm="{size}"]
       [md="{size}"]
       [lg="{size}"]
       [xl="{size}"]
       [xs-offset="{size}"]
       [sm-offset="{size}"]
       [md-offset="{size}"]
       [lg-offset="{size}"]
       [xl-offset="{size}"]
       [dynamic="{string}"]>
</layout:block>
```

as attribute

```xml wrap  theme={"dark"}
<ANY layout-block
     [xs="{size}"]
     [sm="{size}"]
     [md="{size}"]
     [lg="{size}"]
     [xl="{size}"]
     [xs-offset="{size}"]
     [sm-offset="{size}"]
     [md-offset="{size}"]
     [lg-offset="{size}"]
     [xl-offset="{size}"]
     [dynamic="{string}"]>
   ...
</ANY>
```

#### Parameters

| Param                   | Type       | Details                                                 |
| ----------------------- | ---------- | ------------------------------------------------------- |
| xs  *(optional)*        | **size**   | The grid ratio to use for the smallest break point      |
| sm  *(optional)*        | **size**   | The grid ratio to use for the small break point         |
| md  *(optional)*        | **size**   | The grid ratio to use for the medium break point        |
| lg  *(optional)*        | **size**   | The grid ratio to use for the large break point         |
| xl  *(optional)*        | **size**   | The grid ratio to use for above the large break point   |
| xs-offset  *(optional)* | **size**   | The offset ratio to use for the smallest break point    |
| sm-offset  *(optional)* | **size**   | The offset ratio to use for the small break point       |
| md-offset  *(optional)* | **size**   | The offset ratio to use for the medium break point      |
| lg-offset  *(optional)* | **size**   | The offset ratio to use for the large break point       |
| xl-offset  *(optional)* | **size**   | The offset ratio to use for above the large break point |
| dynamic  *(optional)*   | **string** | Watch for updates to the attributes                     |

## Example

#### Source

```xml wrap  theme={"dark"}
<layout:grid>
    <layout:block sm="23-24" md="3-4" lg="1-2" xl="1-4" lg-offset="1-4" xl-offset="1-2">Content</layout:block>
</layout:grid>
```
