PHP 8.2.30
Preview: styled.d.ts Size: 1.02 KB
/proc/thread-self/root/home/byroehnu/.trash/node_modules11/styled-components/dist/constructors/styled.d.ts

import * as React from 'react';
import { BaseObject, KnownTarget, WebTarget } from '../types';
import { SupportedHTMLElements } from '../utils/domElements';
import { Styled as StyledInstance } from './constructWithOptions';
declare const baseStyled: <Target extends WebTarget, InjectedProps extends object = BaseObject>(tag: Target) => StyledInstance<"web", Target, Target extends KnownTarget ? React.ComponentPropsWithRef<Target> & InjectedProps : InjectedProps, BaseObject>;
declare const styled: typeof baseStyled & { [E in SupportedHTMLElements]: StyledInstance<"web", E, React.JSX.IntrinsicElements[E]>; };
export default styled;
export { StyledInstance };
/**
 * This is the type of the `styled` HOC.
 */
export type Styled = typeof styled;
/**
 * Use this higher-order type for scenarios where you are wrapping `styled`
 * and providing extra props as a third-party library.
 */
export type LibraryStyled<LibraryProps extends object = BaseObject> = <Target extends WebTarget>(tag: Target) => typeof baseStyled<Target, LibraryProps>;

Directory Contents

Dirs: 0 × Files: 5

Name Size Perms Modified Actions
2.36 KB lrw-r--r-- 2026-02-28 11:42:50
Edit Download
282 B lrw-r--r-- 2026-02-28 11:42:50
Edit Download
348 B lrw-r--r-- 2026-02-28 11:42:50
Edit Download
240 B lrw-r--r-- 2026-02-28 11:43:00
Edit Download
1.02 KB lrw-r--r-- 2026-02-28 11:43:02
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).