import { HeartIcon, ListIcon, StarIcon, XIcon } from "@phosphor-icons/react"; import type { Meta, StoryObj } from "@storybook/react-vite"; import { useState } from "react"; import { Button, Flex, Grid } from "../react"; import styles from "../styles.module.css"; const meta = { title: "Designsystem/Button", decorators: [ (Story) => (
), ], } satisfies Meta; export default meta; type Story = StoryObj; export const Default: Story = { render: () => ( <> ), }; export const React: Story = { render: () => ( <> ), }; export const Sizes: Story = { render: () => ( <> ), }; export const Colors: Story = { render: () => (
), }; export const Nowrap: Story = { render: () => (

Med nowrap:

Uten nowrap:

), }; export const Justify: Story = { render: () => (
), }; export const Pressed: Story = { render: function Render() { const [pressed, setPressed] = useState(false); return ( <>
  • ); }, }; export const WithArrows: Story = { render: () => ( <> Lenkeknapp
  • ), }; export const WithIcons: Story = { render: () => ( <> ), }; export const WithSpinner: Story = { render: () => ( ), }; export const WithFullWidth: Story = { render: () => ( ), }; export const WithMenu: Story = { render: () => ( <>
  • ), }; export const WithTooltip: Story = { render: function Render() { const [pressed, setPressed] = useState(false); return ( ); }, }; export const InMenu: Story = { render: () => (
  • ), }; export const Invert: Story = { name: "Invert", render: () => (

    Use data-color="inverted" on parent element or button itself to invert

    ), };