@hackplan/polaris
Version:
Shopify’s product component library
12 lines (11 loc) • 392 B
TypeScript
import React from 'react';
import { ComplexAction } from '../../types';
export interface Props {
/** Inner content of the card */
children?: React.ReactNode;
/** Card header actions */
action?: ComplexAction;
/** Sets toggle state to enabled or disabled */
enabled?: boolean;
}
export default function SettingToggle({ enabled, action, children }: Props): JSX.Element;