@navinc/base-react-components
Version:
Nav's Pattern Library
24 lines (23 loc) • 1.2 kB
TypeScript
import { ReactNode } from 'react';
import { InferComponentProps } from './types.js';
import { Property } from 'csstype';
declare const RadioIndicator: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, {
type: "radio";
} & {
isInvalid?: boolean | undefined;
}, "type">;
declare type RadioProps = {
asideContent?: boolean;
autoFocus?: boolean;
checkedBackgroundColor?: Property.BackgroundColor;
children?: ReactNode;
label?: ReactNode;
className?: string;
checked?: boolean;
disabled?: boolean;
hasBorder?: boolean;
isInvalid?: boolean;
} & InferComponentProps<typeof RadioIndicator>;
export declare const Radio: ({ asideContent, autoFocus, checkedBackgroundColor, children: _children, label, className, checked, disabled, hasBorder, isInvalid, ...props }: RadioProps) => JSX.Element;
declare const StyledRadio: import("styled-components").StyledComponent<({ asideContent, autoFocus, checkedBackgroundColor, children: _children, label, className, checked, disabled, hasBorder, isInvalid, ...props }: RadioProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
export default StyledRadio;