Component/Design-system Libraries
Ready-made UI kits, unstyled headless primitives, accessibility hook libraries and animation toolkits. Interviewers ask because choosing between a full kit and headless primitives is the design-system decision every frontend team makes once and lives with.
on this pageshowhide
explore
- Material UIempty
- shadcn/uiempty
- Chakra UIempty
- Radix UIempty
- React Ariaempty
- Ark UIempty
- Vuetifyempty
- Quasarempty
- Element UIempty
- Framer Motionempty
- React Springempty
- GSAPempty
- Angular Material & CDK (has its own guide)66 questions
- Theme Setup & Palettes5 questions
- Style Overrides & Tokens5 questions
- Form Fields & Error States5 questions
- Datepickers & Date Adapters6 questions
- Dialogs, Snack Bars & Sheets6 questions
- Tables, Sorting & Paging5 questions
- Overlays & Portals6 questions
- Virtual Scrolling5 questions
- Drag & Drop Lists6 questions
- Focus & Keyboard Utilities6 questions
- Headless Widget Primitives6 questions
- Ready-Made Test Harnesses5 questions
questions
66 · 1 sectionIn Angular Material 22, how do you wire a mat-datepicker and its toggle to a text input, and what must the app provide first?
basics
~10 sGive the mat-datepicker a template reference, bind the input with [matDatepicker]="picker" and the mat-datepicker-toggle with [for]="picker", and provide a DateAdapter, for example provideNativeDateAdapter(), in the app config; without one the datepicker throws.
In Angular Material, how do you open an archive-project confirmation with `MatDialog` and read the user's choice in the component that opened it?
basics
~10 sInject MatDialog and call open(ArchiveProjectDialog); it returns a MatDialogRef. Buttons close it with [mat-dialog-close]="true" or dialogRef.close(value), and afterClosed() emits that value to the opener, or undefined after Escape or a backdrop click.
With the Angular CDK's cdkDropList and cdkDrag directives, how do you make a playlist reorderable, and why would a dragged track snap back?
basics
~20 sIn the Angular CDK, put cdkDropList on the container and cdkDrag on each row, handle cdkDropListDropped by calling moveItemInArray with previousIndex and currentIndex. The CDK never reorders your array, so without that handler the row returns to its slot.
In Angular Material, how do you build a text field from mat-form-field, matInput, mat-label, mat-hint and mat-error, and what does each part do?
basics
~20 smat-form-field wraps one control and draws its label, container and subscript line; matInput makes a native input that control. mat-label floats, mat-hint sits below, and mat-error takes the hint's place once the control is in an error state.
In Angular Material, how does a `mat-table` build its rows from `matColumnDef`, `matHeaderRowDef` and `matRowDef`?
basics
~20 sEach matColumnDef names a column and holds its header and cell templates. The header and data row definitions take a list of column names that decides which columns render and in what order, and the table stamps one data row per item.