Skip to main content

Module: Button

Type Aliases

BaseButtonElement

Ƭ BaseButtonElement: React.ElementRef<"button"> & React.ElementRef<typeof Slot>

Defined in

packages/react-kit/src/components/Button/props.ts:47


BaseButtonProps

Ƭ BaseButtonProps: Readonly<{ [key: string]: unknown; asChild?: boolean ; children?: React.ReactNode ; className?: string }>

Defined in

packages/react-kit/src/components/Button/props.ts:3


ButtonElement

Ƭ ButtonElement: BaseButtonElement & React.ElementRef<"a">

Defined in

packages/react-kit/src/components/Button/props.ts:50


ButtonProps

Ƭ ButtonProps: BaseButtonProps & Readonly<{ Element?: "button" | "a" ; size?: "small" | "large" ; type?: "primary" | "secondary" }>

Defined in

packages/react-kit/src/components/Button/props.ts:30

Functions

Button

Button(props): ReactNode

Parameters

NameType
propsOmit<ButtonProps, "ref"> & RefAttributes<ButtonElement>

Returns

ReactNode

See

https://live-storybook-react-kit.appa.pantheon.site/?path=/docs/button--docs

Defined in

node_modules/.pnpm/@[email protected]/node_modules/@types/react/index.d.ts:427


IconButton

IconButton(props): ReactNode

Parameters

NameType
propsOmit<Readonly<{ [key: string]: unknown; asChild?: boolean ; children?: ReactNode ; className?: string }>, "ref"> & RefAttributes<BaseButtonElement>

Returns

ReactNode

See

https://live-storybook-react-kit.appa.pantheon.site/?path=/docs/button--docs

Defined in

node_modules/.pnpm/@[email protected]/node_modules/@types/react/index.d.ts:427