Skip to content

Commit

Permalink
feat: add button component
Browse files Browse the repository at this point in the history
  • Loading branch information
tillywoodfield committed May 30, 2024
1 parent 7215929 commit 0e65cf7
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/scss/components/_index.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@forward "button/button";
@forward "callout/callout";
@forward "card/card";
@forward "icon/icon";
Expand Down
14 changes: 14 additions & 0 deletions src/scss/components/button/_button.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
@use "../../tokens/color" as *;
@use "../../tokens/spacing" as *;

.iati-button {
background-color: $color-teal-90;
border: none;
color: white;
text-transform: uppercase;
padding: $padding-block;

&:hover {
background-color: $color-teal-80;
}
}
14 changes: 14 additions & 0 deletions src/scss/components/button/button.stories.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import type { Meta, StoryObj } from "@storybook/web-components";

import { html } from "lit";

const meta: Meta = {
title: "Components/Button",
};

export default meta;
type Story = StoryObj;

export const Button: Story = {
render: () => html`<button class="iati-button">Button</button>`,
};

0 comments on commit 0e65cf7

Please sign in to comment.