TailwindcssBreakpoint

Enum representing TailwindCSS screen size breakpoints.

Entries

Link copied to clipboard

Default breakpoint (smaller than SM).

Link copied to clipboard

Small breakpoint (SM).

Link copied to clipboard

Medium breakpoint (MD).

Link copied to clipboard

Large breakpoint (LG).

Link copied to clipboard

Extra large breakpoint (XL).

Link copied to clipboard

2x extra large breakpoint (2XL).

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard
fun isBetween(smallBreakpoint: TailwindcssBreakpoint, largeBreakpoint: TailwindcssBreakpoint): Boolean

Checks if the current breakpoint is between two given breakpoints (inclusive).

Link copied to clipboard

Determines if the current breakpoint is greater than the given breakpoint.

Link copied to clipboard

Determines if the current breakpoint is smaller than the given breakpoint.

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.