Files
encoach_frontend_new_v3/node_modules/@radix-ui/react-toggle/dist/index.d.ts
Yamen Ahmad 1e688107fa feat: redesign Exams List page to show submitted custom exams
- Added Custom Exams tab showing all exams from Generation page
- Displays title, module badges, duration, and status
- Added Create Exam button
- Kept Exam Sessions tab for institutional sessions
- Search filters across exams

Made-with: Cursor
2026-04-12 11:07:54 +04:00

25 lines
913 B
TypeScript

import * as React from 'react';
import { Primitive } from '@radix-ui/react-primitive';
type PrimitiveButtonProps = React.ComponentPropsWithoutRef<typeof Primitive.button>;
interface ToggleProps extends PrimitiveButtonProps {
/**
* The controlled state of the toggle.
*/
pressed?: boolean;
/**
* The state of the toggle when initially rendered. Use `defaultPressed`
* if you do not need to control the state of the toggle.
* @defaultValue false
*/
defaultPressed?: boolean;
/**
* The callback that fires when the state of the toggle changes.
*/
onPressedChange?(pressed: boolean): void;
}
declare const Toggle: React.ForwardRefExoticComponent<ToggleProps & React.RefAttributes<HTMLButtonElement>>;
declare const Root: React.ForwardRefExoticComponent<ToggleProps & React.RefAttributes<HTMLButtonElement>>;
export { Root, Toggle, type ToggleProps };