Extensions

Press shift + S to search API reference.

Function

loadCSSFromURLAsync

View source

Injects CSS from a remote URL.

Returns a promise that resolves to the HTML style element inserted into the page.

import {loadCSSFromURLAsync} from '@airtable/blocks/ui';
loadCSSFromURLAsync('https://example.com/style.css');

Function signature

function (url: string) => Promise<HTMLLinkElement>
url

The URL of the stylesheet.