persona-community-5/.pnpm-store/v3/files/9e/65b4e12ba58b045a5c63a1825f5dc15ad72648a80117056c517460571be5a6abd1ced666223b5897193c59a7a5c24b9f858ae31d36ae41a5f3a7906f8dbca6
rdev-worker a1d0d1bf1c
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
build: /implement-feature community-ui --requirements 'Build the React commu...
2026-02-24 08:22:30 +00:00

22 lines
687 B
Plaintext

import * as React from 'react';
declare type Props = {
/**
* styles to apply
*/
styles: string;
/**
* marks style as dynamic, so it will be reapplied on styles change
* note: this is not expected behavior from a "singleton"
* @default false
*/
dynamic?: boolean;
};
/**
* create a Component to add styles on demand
* - styles are added when first instance is mounted
* - styles are removed when the last instance is unmounted
* - changing styles in runtime does nothing unless dynamic is set. But with multiple components that can lead to the undefined behavior
*/
export declare const styleSingleton: () => React.FC<Props>;
export {};