UNPKG

@rdsaude/pulso-react-components

Version:

Biblioteca de componentes React do Pulso Design System da RD Saúde oferece componentes consistentes e de alto desempenho, alinhados com os padrões da RDSaúde. Ideal para desenvolver aplicações modernas e acessíveis.

29 lines (25 loc) 893 B
import * as React$1 from 'react'; import * as Switch$1 from '@radix-ui/react-switch'; import * as react_jsx_runtime from 'react/jsx-runtime'; /** * Representa as props para o componente Switch. */ interface SwitchProps extends React.ComponentProps<typeof Switch$1.Root> { disabled?: boolean; loading?: boolean; } type SwitchRootProps = SwitchProps & { children: React.ReactNode; }; declare const Switch: { Root: (props: SwitchRootProps) => react_jsx_runtime.JSX.Element; Toggle: React$1.ForwardRefExoticComponent<Switch$1.SwitchProps & { children: React.ReactNode; } & React$1.RefAttributes<HTMLButtonElement>>; Thumb: () => react_jsx_runtime.JSX.Element; Label: (props: { children: React.ReactNode; }) => react_jsx_runtime.JSX.Element; Refresh: (props: {}) => react_jsx_runtime.JSX.Element; }; export { Switch, type SwitchProps };