Svelte Label - Flowbite
The Label components are used throughout the library and you can use it for your app as well
Label #
Use the Label
component when you need to add a label.
- Svelte
<script>
import { Label, Checkbox } from 'flowbite-svelte';
</script>
<Label color="red" class="mt-4 flex items-center font-bold italic">
<Checkbox class="me-2" /> Your Label
</Label>
Component data #
The component has the following props, type, and default values. See types page for type information.
Label styling #
- Use the
class
prop to overwritedefaultClass
.