Skip to content

Commit

Permalink
[feature] Add convenience API for the focus state. (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
jverkoey authored Aug 10, 2024
1 parent bec76d9 commit d5b0cb1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Sources/Slipstream/TailwindCSS/Condition.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ public struct Condition {
/// A convenience condition representing the active state.
public static let active = Condition(state: .active)

/// A convenience condition representing the focus state.
public static let focus = Condition(state: .focus)

/// A convenience condition representing a minimum breakpoint.
public static func startingAt(_ breakpoint: Breakpoint) -> Self {
return Condition(startingAt: breakpoint)
Expand Down

0 comments on commit d5b0cb1

Please sign in to comment.