Resize your screen!
Breakpoint
Define responsive breakpoints to use TenoxUI's responsive feature.
Types
ts
type Breakpoint = {
name: string
min?: number
max?: number
}
type Breakpoints = Breakpoint[]
Basic Usage
Try resizing your screen to see the changes.
js
new MakeTenoxUI({
breakpoints: [
{ name: 'max-md', max: 767.9 },
{ name: 'md', min: 768 },
{ name: 'max-lg', max: 1023.9 },
{ name: 'lg', min: 1024 },
// specific screen size
{ name: 'my-size', min: 768, max: 1024 }
]
})
html
<div class="max-md:bg-red md:bg-blue lg:bg-yellow box-200px br-1rem">Resize your screen!</div>
Usage
tenoxui
js
tenoxui({
breakpoints: {
/* your breakpoints here */
}
})
@tenoxui/core
js
new MakeTenoxUI({
classes: {
/* your breakpoints here */
}
})