Collapse with focus

This collapse works with focus. When the div loses focus, it gets closed.

How do I create an account?
Click the "Sign Up" button in the top right corner and follow the registration process.

Collapse with checkbox

This collapse works with a checkbox. It needs to be clicked again to get closed.

How do I create an account?
Click the "Sign Up" button in the top right corner and follow the registration process.

Collapse using <details> and <summary> tag

collapse-open and collapse-close modifiers don't work with this method. Instead, you can control the `initiallyOpen` prop.

How do I create an account?
Click the "Sign Up" button in the top right corner and follow the registration process.

Without border and background color

How do I create an account?
Click the "Sign Up" button in the top right corner and follow the registration process.

With arrow icon

How do I create an account?
Click the "Sign Up" button in the top right corner and follow the registration process.

With plus/minus icon

How do I create an account?
Click the "Sign Up" button in the top right corner and follow the registration process.

Force open

I have collapse-open class
Click the "Sign Up" button in the top right corner and follow the registration process.

Force close

I'm closed by default, but you can still focus me
Click the "Sign Up" button in the top right corner and follow the registration process.

Custom colors for focus method

Use Tailwind CSS `focus:` utilities directly in the `classes` property.

How do I create an account?
Click the "Sign Up" button in the top right corner and follow the registration process.

Custom colors for checkbox method

Use `peer` and `peer-checked` utilities. This requires a manual structure as the styling applies to siblings of the input, which the `Collapse` abstraction doesn't expose directly.

How do I create an account?
Click the "Sign Up" button in the top right corner and follow the registration process.