diff --git a/packages/dev/s2-docs/pages/react-aria/styling.mdx b/packages/dev/s2-docs/pages/react-aria/styling.mdx index 3bdcd611096..06429575e8a 100644 --- a/packages/dev/s2-docs/pages/react-aria/styling.mdx +++ b/packages/dev/s2-docs/pages/react-aria/styling.mdx @@ -3,6 +3,7 @@ import {InstallCommand} from '../../src/InstallCommand'; export default Layout; import {Disclosure, DisclosureTitle, DisclosurePanel} from '@react-spectrum/s2'; +import {StaticTable} from '../../src/StaticTable'; export const section = 'Guides'; export const description = 'How to style React Aria components.'; @@ -210,10 +211,76 @@ Non-boolean states follow the `{name}-{value}` pattern. For example, an element ``` + ### Modifier prefix By default, all modifiers are unprefixed (e.g. `disabled:`), and generate CSS that automatically handles both React Aria Components and native CSS pseudo classes when the names conflict. If you prefer, you can optionally prefix all React Aria Components modifiers with a string of your choice. + + Mapping of all states and their corresponding Tailwind classes + + + + + + ```css @plugin "tailwindcss-react-aria-components" { prefix: rac }; ```