Skip to content
Türkçe
All snippets

WAnchor example

The state wrapper that passes hover, focus and press down to its children.

  • WDiv
  • WAnchor
  • WText
  • WIcon
preview
example_w_anchor.dart
WDiv(
  className: "w-full p-4",
  child: WAnchor(
    child: WDiv(
      className: "flex flex-row items-center justify-center gap-3 py-3",
      children: [
        WText("Explore the documentation", className: "text-lg text-[#539bf5] underline"),
        WIcon(Icons.open_in_new, className: "text-[#539bf5] text-xl"),
      ],
    ),
  ),
)