Skip to content
This repository was archived by the owner on Feb 14, 2022. It is now read-only.

Commit 3b0863e

Browse files
committed
Make quotes dumber
1 parent ad67060 commit 3b0863e

File tree

1 file changed

+44
-44
lines changed

1 file changed

+44
-44
lines changed

src/pages/headless-ui-v1/index.mdx

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Today we’re super excited to release [Headless UI v1.0](https://headlessui.dev
2424
<!--more-->
2525

2626
<a href="https://headlessui.dev">
27-
<img src={card} alt="" />
27+
<img src={card} alt="Headless UI" />
2828
</a>
2929

3030
## What’s new
@@ -36,11 +36,11 @@ We’ve added four new components to the React library, and five new components
3636
Headless UI now includes a robust dialog implementation you can use to build traditional modal dialogs, mobile slide-out menus, or any other take-over-style UI that needs to capture the focus of the entire page.
3737

3838
```jsx
39-
import { useState } from react”;
40-
import { Dialog } from @headlessui/react”;
39+
import { useState } from 'react'
40+
import { Dialog } from '@headlessui/react'
4141

4242
function MyDialog() {
43-
let [isOpen, setIsOpen] = useState(true);
43+
let [isOpen, setIsOpen] = useState(true)
4444

4545
return (
4646
<Dialog open={isOpen} onClose={setIsOpen}>
@@ -59,13 +59,13 @@ function MyDialog() {
5959
<button onClick={() => setIsOpen(false)}>Deactivate</button>
6060
<button onClick={() => setIsOpen(false)}>Cancel</button>
6161
</Dialog>
62-
);
62+
)
6363
}
6464
```
6565
6666
### Disclosure
6767
68-
We’ve added a new `Disclosure` component that makes it easy to show/hide inline content accessibly. This is useful for things like collapsible FAQ questions, show more interfaces, or even hamburger menus that open up and push the rest of the page content away.
68+
We’ve added a new `Disclosure` component that makes it easy to show/hide inline content accessibly. This is useful for things like collapsible FAQ questions, "show more" interfaces, or even hamburger menus that open up and push the rest of the page content away.
6969
7070
```html
7171
<template>
@@ -82,11 +82,11 @@ We’ve added a new `Disclosure` component that makes it easy to show/hide inlin
8282
Disclosure,
8383
DisclosureButton,
8484
DisclosurePanel,
85-
} from @headlessui/vue”;
85+
} from '@headlessui/vue'
8686

8787
export default {
8888
components: { Disclosure, DisclosureButton, DisclosurePanel },
89-
};
89+
}
9090
</script>
9191
```
9292
@@ -95,32 +95,32 @@ We’ve added a new `Disclosure` component that makes it easy to show/hide inlin
9595
There’s now a `RadioGroup` component that you can use to build totally custom radio button UIs, like when you want to use fancy cards or something instead of a simple little radio circle.
9696
9797
```jsx
98-
import { useState } from react”;
99-
import { RadioGroup } from @headlessui/react”;
98+
import { useState } from 'react'
99+
import { RadioGroup } from '@headlessui/react'
100100

101101
function MyRadioGroup() {
102-
let [plan, setPlan] = useState(startup”);
102+
let [plan, setPlan] = useState('startup')
103103

104104
return (
105105
<RadioGroup value={plan} onChange={setPlan}>
106106
<RadioGroup.Label>Plan</RadioGroup.Label>
107-
<RadioGroup.Option value=startup>
107+
<RadioGroup.Option value="startup">
108108
{({ checked }) => (
109109
<span className={`${checked} ? 'bg-blue-200' : ''`}>Startup</span>
110110
)}
111111
</RadioGroup.Option>
112-
<RadioGroup.Option value=business>
112+
<RadioGroup.Option value="business">
113113
{({ checked }) => (
114114
<span className={`${checked} ? 'bg-blue-200' : ''`}>Business</span>
115115
)}
116116
</RadioGroup.Option>
117-
<RadioGroup.Option value=enterprise>
117+
<RadioGroup.Option value="enterprise">
118118
{({ checked }) => (
119119
<span className={`${checked} ? 'bg-blue-200' : ''`}>Enterprise</span>
120120
)}
121121
</RadioGroup.Option>
122122
</RadioGroup>
123-
);
123+
)
124124
}
125125
```
126126
@@ -130,28 +130,28 @@ The new `Popover` component lets you build custom dropdown UIs that don’t have
130130
131131
```html
132132
<template>
133-
<Popover class=relative>
133+
<Popover class="relative">
134134
<PopoverButton>Solutions</PopoverButton>
135135

136-
<PopoverPanel class=absolute z-10>
137-
<div >
138-
<a href=/analytics>Analytics</a>
139-
<a href=/engagement>Engagement</a>
140-
<a href=/security>Security</a>
141-
<a href=/integrations>Integrations</a>
136+
<PopoverPanel class="absolute z-10">
137+
<div>
138+
<a href="/analytics">Analytics</a>
139+
<a href="/engagement">Engagement</a>
140+
<a href="/security">Security</a>
141+
<a href="/integrations">Integrations</a>
142142
</div>
143143

144-
<img src=/solutions.jpg alt=“” />
144+
<img src="/solutions.jpg" alt="" />
145145
</PopoverPanel>
146146
</Popover>
147147
</template>
148148

149149
<script>
150-
import { Popover, PopoverButton, PopoverPanel } from @headlessui/vue”;
150+
import { Popover, PopoverButton, PopoverPanel } from '@headlessui/vue'
151151

152152
export default {
153153
components: { Popover, PopoverButton, PopoverPanel },
154-
};
154+
}
155155
</script>
156156
```
157157
@@ -164,46 +164,46 @@ Headless UI v1.0 brings our React `Transition` component to Vue as well, which m
164164
```html
165165
<template>
166166
<!— This `show` prop controls all nested `Transition.Child` components. —>
167-
<TransitionRoot :show="isOpen">
167+
<TransitionRoot :show="isOpen">
168168
<!— Background overlay —>
169169
<TransitionChild
170-
enter="transition-opacity"
170+
enter="transition-opacity"
171171
ease-linear
172-
duration-300
173-
enter-from="opacity-0"
174-
enter-to="opacity-100"
175-
leave="transition-opacity"
172+
duration-300"
173+
enter-from="opacity-0"
174+
enter-to="opacity-100"
175+
leave="transition-opacity"
176176
ease-linear
177-
duration-300
178-
leave-from="opacity-100"
179-
leave-to="opacity-0"
177+
duration-300"
178+
leave-from="opacity-100"
179+
leave-to="opacity-0"
180180
>
181181
<!— … —>
182182
</TransitionChild>
183183

184184
<!— Sliding sidebar —>
185185
<TransitionChild
186-
enter="transition"
186+
enter="transition"
187187
ease-in-out
188188
duration-300
189-
transform
190-
enter-from="-translate-x-full"
191-
enter-to="translate-x-0"
192-
leave="transition"
189+
transform"
190+
enter-from="-translate-x-full"
191+
enter-to="translate-x-0"
192+
leave="transition"
193193
ease-in-out
194194
duration-300
195-
transform
196-
leave-from="translate-x-0"
197-
leave-to="-translate-x-full"
195+
transform"
196+
leave-from="translate-x-0"
197+
leave-to="-translate-x-full"
198198
>
199199
<!— … —>
200200
</TransitionChild>
201201
</TransitionRoot>
202202
</template>
203203

204204
<script>
205-
import { ref } from vue;
206-
import { Transition, TransitionChild } from @headlessui/vue;
205+
import { ref } from "vue";
206+
import { Transition, TransitionChild } from "@headlessui/vue";
207207

208208
export default {
209209
components: { TransitionRoot: Transition, TransitionChild },

0 commit comments

Comments
 (0)