Packages

A comprehensive Phoenix LiveView component library based on HyperUI Tailwind CSS components.

Retired package: Release invalid - Package has a breaking bug

Current section

Files

Jump to
hyper_ui storybook components button.story.exs
Raw

storybook/components/button.story.exs

defmodule HyperUI.Storybook.Button do
use PhoenixStorybook.Story, :component
def function, do: &HyperUI.Components.ApplicationUI.button/1
def variations do
[
%Variation{
id: :solid,
attributes: %{variant: "solid", color: "black"},
slots: ["Download"]
},
%Variation{
id: :outline,
attributes: %{variant: "outline", color: "black"},
slots: ["Download"]
},
%Variation{
id: :emerald,
attributes: %{variant: "solid", color: "emerald"},
slots: ["Get Started"]
}
]
end
end