Skip to content
Snippets Groups Projects
Commit e3a9903e authored by Mateu Aguiló Bosch's avatar Mateu Aguiló Bosch
Browse files

feat: another example

parent e8ebc1f6
No related branches found
No related tags found
No related merge requests found
.cl-component--my-card {
max-width: 512px;
}
{
"$schema": "https://git.drupalcode.org/project/cl_components/-/raw/1.x/src/metadata.schema.json",
"machineName": "my-card",
"name": "Card",
"status": "BETA",
"schemas": {
"props": {
"type": "object",
"required": [
"header",
"children"
],
"properties": {
"header": {
"type": "string",
"title": "Header",
"description": "The card header",
"examples": [
"I am a header!"
]
}
}
}
}
}
title: Deeply/Card
stories:
- name: Default
args:
header: I am a header!
children: Lorem ipsum, dolor sit, amet ra. Quas praesentium inventore necessitatibus et beatae accusamus veniam officiis. Quisquam ut consectetur possimus recusandae.
<div {{ clAttributes }}>
<h2>{{ header }}</h2>
<div class="cl-components--my-card__body">
{{ children }}
</div>
</div>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment