new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

shadcn/ui · all subjects

component props

6 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

Carousel orientation prop

Use the 'orientation' prop on the Carousel component to set orientation. The prop accepts 'vertical' or 'horizontal' values.

Pass options to carousel with opts prop

Use the 'opts' prop on the Carousel component to pass Embla Carousel options. Example: opts={{ align: "start", loop: true }}. See Embla Carousel docs for all available options.

Carousel API access with setApi

Use the 'setApi' prop on Carousel and React state to get an instance of the carousel API. Import CarouselApi type from '@/components/ui/carousel'. Call api.scrollSnapList() to get snap list length, api.selectedScrollSnap() to get current position (0-indexed), and use api.on('select', callback) to listen to selection changes.

Carousel plugins prop

Use the 'plugins' prop on the Carousel component to add plugins. Pass an array of plugin instances. Example: plugins={[Autoplay({ delay: 2000 })]} to add autoplay with a 2000ms delay.

Set carousel orientation

Use the `orientation` prop on Carousel to set the carousel orientation. Accepts `"vertical"` or `"horizontal"`.

Customize carousel scroll behavior with opts prop

How do I customize the Carousel scroll behavior? Pass options to the carousel using the `opts` prop. Common options include `align` (e.g., "start") and `loop` (boolean). See the Embla Carousel docs for more options.

Give your agent this brain