@patreon/studio
Version:
Patreon Studio Design System
22 lines (21 loc) • 798 B
TypeScript
import type { ButtonProps } from '../components/Button/types';
export interface Action extends ButtonProps {
/**
* Whether to automatically focus on this Button when it loads
* @deprecated the autoFocus prop should not be used, as it can reduce usability and accessibility for users.
*/
autoFocus?: boolean;
/**
* HTML id property.
*/
id?: string;
/**
* Provides a more descriptive label for screen-reader users, in case the label is insufficient.
*/
accessibilityLabel?: string;
/**
* Action label, can be a string or fragment. However only non-styled text inside of a JSX fragment should be used. JSX
* with styling/divs/etc. are not officially supported and may not render correctly.
*/
label: React.ReactNode;
}