Skip to content

Commit 75ae329

Browse files
committedMar 7, 2025
BSD fixes #245: Create an example component for devs
1 parent 416db72 commit 75ae329

File tree

3 files changed

+43
-0
lines changed

3 files changed

+43
-0
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{#
2+
/**
3+
* Example
4+
*
5+
* A sample component for reuse.
6+
*
7+
* Available variables:
8+
* - title: String description.
9+
**/
10+
#}
11+
12+
<div class="bix-example">
13+
<h1 class="bix-example__title">
14+
{{ title | default("Hello world") }}
15+
</h1>
16+
</div>
+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
@use "uswds-core" as *;
2+
3+
.bix-example {
4+
color: var(--c-primary);
5+
6+
&__title {
7+
font-size: size("heading", 18);
8+
}
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import Example from "./example.html.twig";
2+
import "./example.scss";
3+
4+
// import infoIcon from "@uswds/uswds/img/usa-icons/info_outline.svg";
5+
6+
export default {
7+
title: "Components/Example Component",
8+
tags: ["autodocs"],
9+
component: Example,
10+
};
11+
12+
export const Default = {};
13+
14+
export const Custom = {
15+
args: {
16+
title: "Hola mundo",
17+
},
18+
};

0 commit comments

Comments
 (0)
Please sign in to comment.