UNPKG

@bothub-chat/ui

Version:

Bothub UI Components

16 lines (15 loc) 706 B
import type { RuleSet, Interpolation, ExecutionContext } from 'styled-components/dist/types'; export type AdaptiveVariant = 'main' | 'dashboard'; export type AdaptiveStyle = string | number | false | RuleSet<object>; export interface AdaptiveOptions { variant?: AdaptiveVariant; merge?: boolean; desktop?: AdaptiveStyle; tablet?: AdaptiveStyle; miniTablet?: AdaptiveStyle; mobile?: AdaptiveStyle; touch?: AdaptiveStyle; } export type AdaptiveFn<Props extends object> = (props: ExecutionContext & Props) => AdaptiveOptions; export declare function adaptive<Props extends object>(optionsOrFn: AdaptiveOptions | AdaptiveFn<Props>): Interpolation<Props>; export * from './context';