from cjm_fasthtml_tailwind.builders.scales import enums_to_simple_factory
badge_styles = enums_to_simple_factory("badge", [OutlineStyle, DashStyle, SoftStyle, GhostStyle])
assert str(badge_styles.outline) == "badge-outline"
assert str(badge_styles.dash) == "badge-dash"
assert str(badge_styles.soft) == "badge-soft"
assert str(badge_styles.ghost) == "badge-ghost"
assert str(badge_styles.ghost.hover) == "hover:badge-ghost"styles
Named style support for daisyUI components
Named Style Enum
Define enum for the style names used by daisyUI:
OutlineStyle
def OutlineStyle(
args:VAR_POSITIONAL, kwds:VAR_KEYWORD
):
daisyUI style names.
DashStyle
def DashStyle(
args:VAR_POSITIONAL, kwds:VAR_KEYWORD
):
daisyUI style names.
SoftStyle
def SoftStyle(
args:VAR_POSITIONAL, kwds:VAR_KEYWORD
):
daisyUI style names.
GhostStyle
def GhostStyle(
args:VAR_POSITIONAL, kwds:VAR_KEYWORD
):
daisyUI style names.
BorderStyle
def BorderStyle(
args:VAR_POSITIONAL, kwds:VAR_KEYWORD
):
daisyUI style names.
HoverStyle
def HoverStyle(
args:VAR_POSITIONAL, kwds:VAR_KEYWORD
):
daisyUI style names.